Skip to content

Instantly share code, notes, and snippets.

@iamvery
Created June 30, 2014 16:31
Show Gist options
  • Save iamvery/122833d0abb607188ce5 to your computer and use it in GitHub Desktop.
Save iamvery/122833d0abb607188ce5 to your computer and use it in GitHub Desktop.
#!/bin/sh
file=$1
exec=$(echo $file | awk -F\. '{print$1}')
xcrun swift "$file" && ./"$exec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment