diff --git a/.setpath.sh b/.setpath.sh index defa517..491ecb7 100644 --- a/.setpath.sh +++ b/.setpath.sh @@ -1,4 +1,6 @@ BIN_PATH="$HOME/bin" -found=$(echo $PATH | tr ':' '\n' | grep -w "$BIN_PATH") -[ ! "$found" ] && export PATH="$BIN_PATH:$PATH" -true +if [ -d "$BIN_PATH" ]; then + found=$(echo $PATH | tr ':' '\n' | grep -w "$BIN_PATH") + [ ! "$found" ] && export PATH="$BIN_PATH:$PATH" + true +fi