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

Commit

Permalink
- -C works now
Browse files Browse the repository at this point in the history
- -H shows the full full help menu now
- mb something else
  • Loading branch information
Al4ise committed Oct 13, 2022
1 parent 21d3cdf commit 27c02b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ help () {
echo
echo "Examples:"

if [ "$os" == "iOS" ]; then
if [ -n "$azule_decrypt" ] || [ -n "$unsafe_help" ]; then
echo " azule -n Foo -i com.example.foo -x appleid@example.com password123 -o ~/Foo/ -f com.alaise.example ~/Foo.bundle -a -m"
fi

Expand All @@ -189,7 +189,7 @@ help () {
echo " -S Fakesigns iPA for use with AppSync"
echo " -e Removes App Extensions"

if [ -e "$azule/modules/azule_apt" ]; then
if [ -e "$azule/modules/azule_apt" ] || [ -n "$unsafe_help" ]; then
echo
echo "APT Module:"
echo " -A [Source URL/Repo List] Specify custom sources to get packages from"
Expand All @@ -199,7 +199,7 @@ help () {
echo " -D Disable refreshing Procursus/Elcubratus repos"
fi

if [ -n "$azule_decrypt" ]; then
if [ -n "$azule_decrypt" ] || [ -n "$unsafe_help" ]; then
echo
echo "Decrypt Module:"
echo " -x [Apple ID] [Password] Fetch and decrypt iPA with specified Apple ID"
Expand Down Expand Up @@ -232,7 +232,7 @@ help () {

echo " -z Use Legacy Compression (outputs smaller .ipa files, but runs slower)"
echo " -h Print the help menu"
echo " -H Print a more advanced help menu"
echo " -H Print the complete help menu (incl. unsupported options)"

if [ "$os" != "iOS" ]; then
echo
Expand Down Expand Up @@ -360,7 +360,7 @@ trap "cleanup" EXIT
while getopts n:i:o:c:b:x:f:p:C:huSewsrDHqAdjRyUzgmFLklv args; do

# STUFF WITH PARAMETERS
if [[ "$args" == @(x|n|b|p|i|o|c|f|A|z) ]]; then
if [[ "$args" == @(x|n|b|p|i|o|c|f|A|z|C) ]]; then
tmp=( "$OPTARG" )
until [[ $(eval "echo \${$OPTIND}") =~ ^-.* ]] || [ -z "$(eval "echo \${$OPTIND}")" ]; do
tmp+=( "$(eval "echo \${$OPTIND}")" )
Expand All @@ -373,16 +373,14 @@ while getopts n:i:o:c:b:x:f:p:C:huSewsrDHqAdjRyUzgmFLklv args; do
if [[ "$args" == @(U|F) ]]; then
Announce "-$args is not supported on your platform" 6
fi
elif [[ "$args" == @(x|l|g|C) ]]; then
Announce "-$args is not supported on your platform" 6
fi

# MODULE SPECIFIC
if [ ! -e "$azule/modules/azule_apt" ] && [[ "$args" == @(A|d|D|L) ]]; then
Announce "-$args requires the module azule_apt which is not installed" 34
fi

if [ -n "$azule_decrypt" ] && [[ "$args" == @(x|C|y|g|k|l) ]]; then
if [ -z "$azule_decrypt" ] && [[ "$args" == @(x|C|y|g|k|l) ]]; then
Announce "-$args requires the module azule_decrypt which is not installed" 34
fi

Expand Down
14 changes: 6 additions & 8 deletions iOS/usr/bin/azule
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ help () {
echo
echo "Examples:"

if [ "$os" == "iOS" ]; then
if [ -n "$azule_decrypt" ] || [ -n "$unsafe_help" ]; then
echo " azule -n Foo -i com.example.foo -x appleid@example.com password123 -o ~/Foo/ -f com.alaise.example ~/Foo.bundle -a -m"
fi

Expand All @@ -189,7 +189,7 @@ help () {
echo " -S Fakesigns iPA for use with AppSync"
echo " -e Removes App Extensions"

if [ -e "$azule/modules/azule_apt" ]; then
if [ -e "$azule/modules/azule_apt" ] || [ -n "$unsafe_help" ]; then
echo
echo "APT Module:"
echo " -A [Source URL/Repo List] Specify custom sources to get packages from"
Expand All @@ -199,7 +199,7 @@ help () {
echo " -D Disable refreshing Procursus/Elcubratus repos"
fi

if [ -n "$azule_decrypt" ]; then
if [ -n "$azule_decrypt" ] || [ -n "$unsafe_help" ]; then
echo
echo "Decrypt Module:"
echo " -x [Apple ID] [Password] Fetch and decrypt iPA with specified Apple ID"
Expand Down Expand Up @@ -232,7 +232,7 @@ help () {

echo " -z Use Legacy Compression (outputs smaller .ipa files, but runs slower)"
echo " -h Print the help menu"
echo " -H Print a more advanced help menu"
echo " -H Print the complete help menu (incl. unsupported options)"

if [ "$os" != "iOS" ]; then
echo
Expand Down Expand Up @@ -360,7 +360,7 @@ trap "cleanup" EXIT
while getopts n:i:o:c:b:x:f:p:C:huSewsrDHqAdjRyUzgmFLklv args; do

# STUFF WITH PARAMETERS
if [[ "$args" == @(x|n|b|p|i|o|c|f|A|z) ]]; then
if [[ "$args" == @(x|n|b|p|i|o|c|f|A|z|C) ]]; then
tmp=( "$OPTARG" )
until [[ $(eval "echo \${$OPTIND}") =~ ^-.* ]] || [ -z "$(eval "echo \${$OPTIND}")" ]; do
tmp+=( "$(eval "echo \${$OPTIND}")" )
Expand All @@ -373,16 +373,14 @@ while getopts n:i:o:c:b:x:f:p:C:huSewsrDHqAdjRyUzgmFLklv args; do
if [[ "$args" == @(U|F) ]]; then
Announce "-$args is not supported on your platform" 6
fi
elif [[ "$args" == @(x|l|g|C) ]]; then
Announce "-$args is not supported on your platform" 6
fi

# MODULE SPECIFIC
if [ ! -e "$azule/modules/azule_apt" ] && [[ "$args" == @(A|d|D|L) ]]; then
Announce "-$args requires the module azule_apt which is not installed" 34
fi

if [ -n "$azule_decrypt" ] && [[ "$args" == @(x|C|y|g|k|l) ]]; then
if [ -z "$azule_decrypt" ] && [[ "$args" == @(x|C|y|g|k|l) ]]; then
Announce "-$args requires the module azule_decrypt which is not installed" 34
fi

Expand Down

0 comments on commit 27c02b4

Please sign in to comment.