Skip to content

Commit

Permalink
Merge pull request #11 from leinher/leinher/main
Browse files Browse the repository at this point in the history
chirpotle.sh: Add error message if script parameter is not set or does not exist
  • Loading branch information
fhessel authored Feb 11, 2024
2 parents 05de650 + bd66b54 commit 3e13a98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chirpotle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,10 @@ function chirpotle_run {
esac
done
# ... all other arguments (if any) are passed to the script as positional args
if [[ ! -e "$SCRIPTNAME" ]]; then
echo "Abort: Script '$SCRIPTNAME' could not be found."
exit 1
fi
while [[ $# -gt 0 ]]; do
POSITIONAL+=("$1")
shift
Expand Down

0 comments on commit 3e13a98

Please sign in to comment.