Skip to content

Commit 106cc5f

Browse files
committed
no error if requirements.txt doesn't exist
1 parent bbd6732 commit 106cc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function error() {
2424
function install_deps() {
2525
EXAMPLE_NAME=$1
2626
echo "] $EXAMPLE_NAME: installing requirements"
27-
[[ -f requirements.txt ]] || { error "requirements.txt not found; skipping"; return; }
27+
[[ -f requirements.txt ]] || return
2828
for req in $(cat requirements.txt); do
2929
# testing the installed version of torch, so don't pip install it.
3030
if [[ "$req" != "torch" ]]; then

0 commit comments

Comments
 (0)