Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Aug 27, 2021
1 parent fa1459b commit 5d95f53
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ if [ ! -e "$ipadir" ]; then
echo "Invalid App"
exit 1
fi
ignore_outdated=2
fi
drun=1
fi
Expand Down Expand Up @@ -503,33 +504,27 @@ if [ -n "$drun" ]; then

if [ -n "$currentv" ]; then ignore_outdated+=1; fi

# INSTALL UPDATES
if [[ "$latestv" != "$currentv" && "$ignore_outdated" != "11" ]] || [ -n "$force_update" ]; then
# INSTALL APP UPDATES
if [ "$ignore_outdated" != "2" ]; then
if [[ "$latestv" != "$currentv" && "$ignore_outdated" != "11" ]] || [ -n "$force_update" ]; then

# VARIABLE CHECK
if [ -z "$appleid" ]; then while
printf 'Apple ID: '
read -r -s appleid
[ -z "$appleid" ] && echo "No Apple ID Provided"
do true; done; fi
# VARIABLE CHECK
if [ -z "$appleid" ]; then while
printf 'Apple ID: '
read -r -s appleid
[ -z "$appleid" ] && echo "No Apple ID Provided"
do true; done; fi

if [ -z "$appleid_password" ]; then while
printf 'Password for Apple ID: '
read -r appleid_password
[ -z "$appleid_password" ] && echo "No Password Provided"
do true; done; fi
if [ -z "$appleid_password" ]; then while
printf 'Password for Apple ID: '
read -r appleid_password
[ -z "$appleid_password" ] && echo "No Password Provided"
do true; done; fi

if ! ipatool-azule download -b "$ipadir" -e "$appleid" -p "$appleid_password"; then exit 1; fi
if ! ipatool-azule download -b "$ipadir" -e "$appleid" -p "$appleid_password"; then exit 1; fi

appinst "$dir/$tweakid"/*.ipa

while read -r i; do
if [ "$(ExtractPlistValue MCMMetadataIdentifier "$i")" = "$ipadir" ]; then
bfplist="$(find "$(dirname "$i")"/*.app/ -maxdepth 1 -name Info.plist)"
bfbinary="$(dirname "$bfplist")/$(ExtractPlistValue CFBundleExecutable "$bfplist")"
break
fi
done < <(find /var/containers/Bundle/Application -name .com.apple.mobile_container_manager.metadata.plist)
appinst "$dir/$tweakid"/*.ipa
fi
fi

if [ -n "$flexdecrypt" ]; then
Expand All @@ -554,9 +549,7 @@ if [ -n "$drun" ]; then
# REMOVING PLUGINS
if [ -n "$remove_extensions" ]; then
if [ -z "$silent_run" ]; then echo "Removing Extensions..."; fi
while read -r i; do
rm -rf "$i"
done < <(find "$dir/$tweakid" -mindepth 3 -type d -name PlugIns)
while read -r i; do rm -rf "$i"; done < <(find "$dir/$tweakid" -mindepth 3 -type d -name PlugIns)
Verbose "Removed Extensions" "Couldn't Remove Extensions"
remove_extensions=2
fi
Expand Down

0 comments on commit 5d95f53

Please sign in to comment.