summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/bin/.scala_wrapper.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/bin/.scala_wrapper.tmpl b/sources/bin/.scala_wrapper.tmpl
index 2d305a3354..182d3cdaa7 100644
--- a/sources/bin/.scala_wrapper.tmpl
+++ b/sources/bin/.scala_wrapper.tmpl
@@ -344,7 +344,7 @@ scala_has_bootclasspath() {
while [ $# != 0 ]; do
case "$1" in
-Xbootclasspath:* ) return 0;;
- -cp | -classpath ) shift 2;;
+ -cp | -classpath ) shift 1; [ $# != 0 ] && shift 1;;
-jar ) return 1;;
-* ) shift 1;;
* ) return 1;;