diff options
-rw-r--r-- | sources/bin/.scala_wrapper.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/bin/.scala_wrapper.tmpl b/sources/bin/.scala_wrapper.tmpl index 23f9ee0058..79fd2abd2b 100644 --- a/sources/bin/.scala_wrapper.tmpl +++ b/sources/bin/.scala_wrapper.tmpl @@ -967,10 +967,10 @@ test_main() { fi; if [ -n "$OBJDIR" ]; then - if [ -d "$OBJDIR" ]; then + if [ -d "$OBJDIR" ] || mkdir -p "$OBJDIR"; then OBJDIR=`cd "$OBJDIR"; pwd`/; else - abort "could not access directory '$OBJDIR'"; + abort "could not create directory '$OBJDIR'"; fi fi |