Skip to content

Commit

Permalink
Fix Latest Magisk Release
Browse files Browse the repository at this point in the history
Signed-off-by: Sushrut1101 <[email protected]>
  • Loading branch information
Sushrut1101 committed May 13, 2022
1 parent 9661170 commit aaa9891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ BRANCH_INT=$(echo $SYNC_BRANCH | cut -d. -f1)
# Magisk
if [[ $OF_USE_LATEST_MAGISK = "true" || $OF_USE_LATEST_MAGISK = "1" ]]; then
echo "Using the Latest Release of Magisk..."
export FOX_USE_SPECIFIC_MAGISK_ZIP="~/Magisk/$(ls ~/Magisk/Magisk*.zip)"
export FOX_USE_SPECIFIC_MAGISK_ZIP=$("ls" ~/Magisk/Magisk*.zip)
fi

# Legacy Build Systems
Expand Down
3 changes: 2 additions & 1 deletion scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ if [[ $OF_USE_LATEST_MAGISK = "true" || $OF_USE_LATEST_MAGISK = "1" ]]; then
aria2c $LATEST_MAGISK_URL 2>&1 || wget $LATEST_MAGISK_URL 2>&1
echo "Magisk Downloaded Successfully"
echo "Renaming .apk to .zip ..."
rename 's/.apk/.zip/' Magisk*
#rename 's/.apk/.zip/' Magisk*
mv $("ls" Magisk*.apk) $("ls" Magisk*.apk | sed 's/.apk/.zip/g')
cd $SYNC_PATH >/dev/null
echo "Done!"
fi
Expand Down

0 comments on commit aaa9891

Please sign in to comment.