install.sh: exit if cd PROFILEFOLDER fails

This commit is contained in:
Rafael Mardojai CM 2019-07-17 17:38:26 -05:00
parent 4c1dea301f
commit 46fc050d80
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ if test -z "$PROFILENAME"
fi fi
# Enter Firefox profile folder. # Enter Firefox profile folder.
cd $PROFILEFOLDER if ! cd $PROFILEFOLDER ; then
echo "Error entering profile folder."
exit 1
fi
echo "Installing theme in $PWD" echo "Installing theme in $PWD"
# Create a chrome directory if it doesn't exist. # Create a chrome directory if it doesn't exist.