From d0da33475fe418df6a696deb9ee142e509c818a9 Mon Sep 17 00:00:00 2001 From: Purple Date: Thu, 6 Feb 2025 12:32:45 +0000 Subject: [PATCH] added sudo --- Mac/tstools.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Mac/tstools.sh b/Mac/tstools.sh index df172c6..a4435ee 100755 --- a/Mac/tstools.sh +++ b/Mac/tstools.sh @@ -24,24 +24,13 @@ #################################################################################################### SYMLINK="/usr/local/bin/tstools" TARGET="/Library/Application Support/Purple/tstools.sh" -mkdir -p /opt/PurpleComputing/ +mkdir -p "/Library/Application Support/Purple/" DA=$(date +%s) -curl -fsSL -o /tmp/tailscale-$DA.sh https://prpl.uk/tailscalesh -curl -fsSL -o $TARGET https://prpl.uk/tailscaletools +sudo curl -fsSL -o /tmp/tailscale-$DA.sh https://prpl.uk/tailscalesh +sudo curl -fsSL -o $TARGET https://prpl.uk/tailscaletools source /tmp/tailscale-$DA.sh - -# Check if the symlink exists and is valid -# if [ -L "$SYMLINK" ] && [ "$(readlink "$SYMLINK")" == "$TARGET" ]; then -# echo " " -# else -# # Remove any existing file or incorrect symlink -# if [ -e "$SYMLINK" ] || [ -L "$SYMLINK" ]; then -# rm -f "$SYMLINK" -# fi -# -# # Verify the creation if [ -L "$SYMLINK" ]; then echo "" else @@ -49,7 +38,7 @@ source /tmp/tailscale-$DA.sh sleep 0.5 ln -s "$TARGET" "$SYMLINK" fi -# fi + #################################################################################################### echo ............................................... echo ....... Purple Tailscale Toolkit ..............