Skip to content

Commit 3bce0a0

Browse files
committed
corrected save_compiled test
1 parent 3555838 commit 3bce0a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/bin/scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ while [[ $# -gt 0 ]]; do
109109
done
110110

111111
if [ $execute_script == true ]; then
112+
[ -n "$script_trace" ] && set -x
112113
if [ "$CLASS_PATH" ]; then
113114
cp_arg="-classpath \"$CLASS_PATH\""
114115
fi
115116
if [ -n "$SCALA_OPTS" ]; then
116117
java_options+=($SCALA_OPTS)
117-
if [ "${SCALA_OPTS##-save}" != "${SCALA_OPTS}" ]; then
118+
if [ "${SCALA_OPTS##*-save}" != "${SCALA_OPTS}" ]; then
118119
save_compiled=true
119120
fi
120121
fi

0 commit comments

Comments
 (0)