[Swift-commit] r6190 - trunk/bin
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Wed Jan 30 11:54:00 CST 2013
Author: davidk
Date: 2013-01-30 11:54:00 -0600 (Wed, 30 Jan 2013)
New Revision: 6190
Modified:
trunk/bin/swiftrun
Log:
Allow passing other swift args more easily
Modified: trunk/bin/swiftrun
===================================================================
--- trunk/bin/swiftrun 2013-01-30 17:46:19 UTC (rev 6189)
+++ trunk/bin/swiftrun 2013-01-30 17:54:00 UTC (rev 6190)
@@ -48,7 +48,7 @@
case "$1" in
-site|-sites|-s) SITES=$2; verify_not_null sites $SITES; shift ;;
-config|-c) CONFIG=$2; verify_not_null config $CONFIG; shift ;;
- *) if [ -z "$script" ]; then script="$1"
+ *) if [ -z "$script" ] && [[ $1 == *.swift ]]; then script="$1"
else args+="$1 "
fi ;;
esac
More information about the Swift-commit
mailing list