18 lines
456 B
Bash
Executable File
18 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
APP_PATH="/Applications/Netcatty.app"
|
|
|
|
if [ ! -d "$APP_PATH" ]; then
|
|
/usr/bin/osascript <<'EOF'
|
|
display alert "Netcatty.app not found" message "Drag Netcatty.app into /Applications, then run this tool again." as critical buttons {"OK"} default button "OK"
|
|
EOF
|
|
exit 1
|
|
fi
|
|
|
|
/usr/bin/osascript <<'EOF'
|
|
do shell script "xattr -dr com.apple.quarantine /Applications/Netcatty.app" with administrator privileges
|
|
EOF
|
|
|
|
open "$APP_PATH"
|