Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.

Commit d5a3a3e

Browse files
committed
- -C works now
- -H shows the full full help menu now - mb something else
1 parent c3ed700 commit d5a3a3e

2 files changed

Lines changed: 12 additions & 16 deletions

File tree

azule

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ help () {
169169
echo
170170
echo "Examples:"
171171

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

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

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

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

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

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

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

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

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

iOS/usr/bin/azule

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ help () {
169169
echo
170170
echo "Examples:"
171171

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)