Skip to content

Commit

Permalink
Minor fix for systems w/o local bin
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Jun 1, 2018
1 parent 6d72183 commit 0f6beee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0f6beee

Please sign in to comment.