Skip to content

Commit

Permalink
v0.0.8: Try harder to find payloads directory
Browse files Browse the repository at this point in the history
If micropatcher.sh fails to find the payloads directory, it's probably
because the PWD isn't the directory that contains micropatcher.sh. So,
it will now try to figure out its own directory, change to that, and
check again for the payloads directory.

This should fix a patcher failure that is happening in the real world.
That justifies releasing v0.0.8 with just this fix.
  • Loading branch information
barrykn committed Jul 5, 2020
1 parent 27a62bd commit 9d5e122
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# big-sur-micropatcher (Version 0.0.7)
# big-sur-micropatcher (Version 0.0.8)
A primitive USB patcher for installing macOS Big Sur on unsupported Macs

(Note that [ParrotGeek has a Big Sur patcher](https://parrotgeek.com/bigsur/) now; it is an alternative that you should consider.)
Expand Down
12 changes: 11 additions & 1 deletion micropatcher.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VERSIONNUM="0.0.7"
VERSIONNUM="0.0.8"
VERSION="BarryKN Big Sur Micropatcher v$VERSIONNUM"

echo $VERSION
Expand All @@ -16,6 +16,16 @@ VOLUME='/Volumes/Install macOS Beta'

# A couple of quick sanity checks before we begin.
if [ ! -d payloads ]
then
echo '"payloads" folder was not found on first attempt, but trying again.'
echo '(This is unimportant if the second attempt succeeds.)'
echo
BASEDIR="`echo $0|sed -E 's@/[^/]*$@@'`"
[ -z "$BASEDIR" ] || cd "$BASEDIR"
fi

# Check again in case we changed directory after the first check
if [ ! -d payloads ]
then
echo '"payloads" folder was not found.'
echo
Expand Down
2 changes: 1 addition & 1 deletion unpatch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VERSIONNUM="0.0.7"
VERSIONNUM="0.0.8"
VERSION="BarryKN Big Sur Micropatcher Unpatcher v$VERSIONNUM"

echo $VERSION
Expand Down

0 comments on commit 9d5e122

Please sign in to comment.