Skip to content

Commit ae9b124

Browse files
authored
Merge pull request #948 from InfraWhisperer/use_relative_path_instead_of_absolute_path
fix wrapper script to use relative path on macos
2 parents 0a51933 + b4d03a8 commit ae9b124

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/usr/bin/env zsh
2-
osascript -e 'do shell script "/*/Sniffnet.app/Contents/MacOS/sniffnet >/dev/null 2>&1 &" with prompt "Comfortably monitor your Internet traffic." with administrator privileges'
2+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
3+
SNIFFNET_PATH="$SCRIPT_DIR/sniffnet"
4+
osascript -e "do shell script \"'$SNIFFNET_PATH' >/dev/null 2>&1 &\" with prompt \"Comfortably monitor your Internet traffic.\" with administrator privileges"

0 commit comments

Comments
 (0)