From 0f6beee9b4bf6070dcef31a24c9a22a5db80bbf0 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Date: Fri, 1 Jun 2018 16:21:29 +0530 Subject: [PATCH] Minor fix for systems w/o local bin --- README.md | 2 +- purge-wrangler.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 145a11b..0b58431 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ $ reboot ### Step 2 Boot back into macOS, then copy-paste the following into **Terminal**: ```bash -curl -L -s https://github.com/mayankk2308/purge-wrangler/releases/download/3.1.0/purge-wrangler.sh > purge-wrangler.sh;chmod +x purge-wrangler.sh;./purge-wrangler.sh;rm purge-wrangler.sh +curl -L -s https://github.com/mayankk2308/purge-wrangler/releases/download/3.1.1/purge-wrangler.sh > purge-wrangler.sh;chmod +x purge-wrangler.sh;./purge-wrangler.sh;rm purge-wrangler.sh ``` Note that you may change to a different valid version in the above command. diff --git a/purge-wrangler.sh b/purge-wrangler.sh index 4959bb5..69be344 100755 --- a/purge-wrangler.sh +++ b/purge-wrangler.sh @@ -3,7 +3,7 @@ # purge-wrangler.sh # Author(s): Mayank Kumar (mayankk2308, github.com / mac_editor, egpu.io) # License: Specified in LICENSE.md. -# Version: 3.1.0 +# Version: 3.1.1 # Re-designed from the ground up for scalable patches and a user-friendly # command-line + menu-driven interface. @@ -33,7 +33,6 @@ shopt -s nocasematch # Script binary LOCAL_BIN="/usr/local/bin" -mkdir -p -m 775 "$LOCAL_BIN" SCRIPT_BIN="${LOCAL_BIN}/purge-wrangler" TMP_SCRIPT="${LOCAL_BIN}/purge-wrangler-new" BIN_CALL=0 @@ -42,7 +41,7 @@ SCRIPT_FILE="" # Script version SCRIPT_MAJOR_VER="3" SCRIPT_MINOR_VER="1" -SCRIPT_PATCH_VER="0" +SCRIPT_PATCH_VER="1" SCRIPT_VER="${SCRIPT_MAJOR_VER}.${SCRIPT_MINOR_VER}.${SCRIPT_PATCH_VER}" # User input @@ -154,6 +153,7 @@ prompt_software_update() # Check Github for newer version + prompt update fetch_latest_release() { + mkdir -p -m 775 "$LOCAL_BIN" if [[ "$BIN_CALL" == 0 ]] then return 0