Skip to content

Commit 01e5904

Browse files
committed
Fixed two typos in c2f0673
I made two stupid mistakes when copying and pasting the changes to scripts that had more than one existing argument. Good thing I double-checked the diff on GitHub.
1 parent 400aa3e commit 01e5904

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/prerequisites/install-libtorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ $# -lt 1 ]; then
66
fi
77

88
INSTALL_PREFIX="/usr/local"
9-
if [[ $# -gt 0 ]]; then
9+
if [[ $# -gt 1 ]]; then
1010
INSTALL_PREFIX=$2
1111
fi
1212
INSTALL_TYPE=$1

scripts/prerequisites/install-tensorflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77

88
# pip3 install tensorflow==${VERSION}
99
INSTALL_PREFIX="/usr/local"
10-
if [[ $# -gt 0 ]]; then
10+
if [[ $# -gt 2 ]]; then
1111
INSTALL_PREFIX=$3
1212
fi
1313
VERSION=$1

0 commit comments

Comments
 (0)