Skip to content

Commit

Permalink
Quit when not able to find project directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Nov 13, 2023
1 parent fd4bc55 commit fcb0907
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ while [ "$fsPointer" -ge 0 ]; do
fi
fsPointer=$(($fsPointer - 1))
done
if [[ "$fsPath" == "/" ]] ; then
echo "No project directory is found. Quitting."
exit 1
fi
IFS="$OIFS"
export PROJECT_DIR=$PWD
export PATH=$PATH:./:./sh
Expand Down

0 comments on commit fcb0907

Please sign in to comment.