From 8590bc52aebd9ffd8e887fc201f07c11cbaafeff Mon Sep 17 00:00:00 2001 From: kareman Date: Thu, 3 Nov 2016 19:56:59 +0100 Subject: [PATCH] Make Misc/swiftshell-init work on Linux. --- Misc/swiftshell-init | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Misc/swiftshell-init b/Misc/swiftshell-init index a14a0ce..daf6d59 100755 --- a/Misc/swiftshell-init +++ b/Misc/swiftshell-init @@ -22,5 +22,9 @@ swift build # Uncomment to automatically place a symbolic link to the compiled executable in a folder in your $PATH. #ln -s `pwd`/.build/debug/$NAME /$NAME -swift package generate-xcodeproj -open $NAME.xcodeproj/ +platform=$(uname) + +if [[ "$platform" == 'Darwin' ]]; then + swift package generate-xcodeproj + open $NAME.xcodeproj/ +fi