We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e3d4f2 + c7212b9 commit a49e578Copy full SHA for a49e578
dist/bin/scala
@@ -118,6 +118,12 @@ while [[ $# -gt 0 ]]; do
118
elif [[ (-f "$1" && `head -n 1 -- "$1" | grep '#!.*scala'`) ]]; then
119
execute_script=true
120
target_script="$1"
121
+ if [ ! -f $target_script ]; then
122
+ # likely a typo or missing script file, quit early
123
+ echo "not found: $target_script" 1>&2
124
+ scala_exit_status=2
125
+ onExit
126
+ fi
127
else
128
# unrecognized args appearing prior to a script name
129
residual_args+=("$1")
0 commit comments