We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b04a4 commit 580c890Copy full SHA for 580c890
sql/files/defaultdata/swift/run
@@ -23,7 +23,7 @@ while [ $# -gt 0 ]; do
23
if [ "x${1%.swift}" != "x$1" ]; then
24
SOURCE="$1"
25
[ -z "$MAINSOURCE" ] && MAINSOURCE="$1"
26
- if [ "x$SOURCE" = "x$MAINSOURCE" ] && [ "x$MAINSOURCE" != "xmain.swift" ]; then
+ if [ "$SOURCE" = "$MAINSOURCE" ] && [ "$MAINSOURCE" != "main.swift" ]; then
27
if [ -f "main.swift" ]; then
28
echo "main.swift exists but is not the main source; not allowed by Swift compiler"
29
exit 1
0 commit comments