Skip to content

Commit

Permalink
Actually exit the script on bad file path
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
mattnotmitt committed May 4, 2021
1 parent 6d8ae09 commit 9964e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

if [ ! -d $2 ]; then
echo "Path $2 could not be found!"
exit 1
fi
cd $2

if [ ! -f $1 ]; then
echo "File $1 could not be found!"
exit 1
fi

# install packages; add latex-related packages only if enabled
Expand Down

0 comments on commit 9964e41

Please sign in to comment.