Skip to content

Commit 7d77285

Browse files
authored
Added additional check for scripts location
1 parent cba390d commit 7d77285

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ffighter

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
# changing directory to be able to use relative paths.
44
SCRIPTS_LOCATION="/home/$USER/filefighter"
5+
6+
if [ ! -d $SCRIPTS_LOCATION ]; then
7+
echo "Couldn't find scripts location under '$SCRIPTS_LOCATION'."
8+
echo "Try reinstalling FileFighter"
9+
exit 1
10+
fi
11+
12+
513
cd $SCRIPTS_LOCATION
614

715
# Import necessary functions.

0 commit comments

Comments
 (0)