Skip to content

Commit fcb0907

Browse files
Quit when not able to find project directory.
1 parent fd4bc55 commit fcb0907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shx

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ while [ "$fsPointer" -ge 0 ]; do
2929
fi
3030
fsPointer=$(($fsPointer - 1))
3131
done
32+
if [[ "$fsPath" == "/" ]] ; then
33+
echo "No project directory is found. Quitting."
34+
exit 1
35+
fi
3236
IFS="$OIFS"
3337
export PROJECT_DIR=$PWD
3438
export PATH=$PATH:./:./sh

0 commit comments

Comments
 (0)