Skip to content

Commit a49e578

Browse files
committed
update dotty.tools.repl.ScriptedTests, dotty.tools.scripting.ClasspathTests for refactored bin/scalac
2 parents 9e3d4f2 + c7212b9 commit a49e578

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dist/bin/scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ while [[ $# -gt 0 ]]; do
118118
elif [[ (-f "$1" && `head -n 1 -- "$1" | grep '#!.*scala'`) ]]; then
119119
execute_script=true
120120
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
121127
else
122128
# unrecognized args appearing prior to a script name
123129
residual_args+=("$1")

0 commit comments

Comments
 (0)