Skip to content

Commit 0a4d8f6

Browse files
committed
Enhance installation directory detection
1 parent e3ce02a commit 0a4d8f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

repo-tools/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ if [ "$(id -u)" != "0" ]; then
2727
BIN_PATH="$HOME/bin"
2828
fi
2929

30+
if [ ! -d "$BIN_PATH" ]; then
31+
echo "None of $HOME/.local/bin or $HOME/bin exists. Please create one of them and add it to PATH"
32+
exit 1
33+
fi
34+
3035
# check if $BIN_PATH is in the PATH
3136
if ! echo $PATH | grep -q "$BIN_PATH"; then
3237
echo "PATH is not set correctly. Please add $BIN_PATH to PATH"

0 commit comments

Comments
 (0)