mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 16:55:14 +00:00
chore: auto format code
This commit is contained in:
@@ -16,7 +16,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
source "$SCRIPT_DIR/../lib/core/common.sh"
|
source "$SCRIPT_DIR/../lib/core/common.sh"
|
||||||
source "$SCRIPT_DIR/../lib/ui/menu_paginated.sh"
|
source "$SCRIPT_DIR/../lib/ui/menu_paginated.sh"
|
||||||
|
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
if [[ "${IN_ALT_SCREEN:-0}" == "1" ]]; then
|
if [[ "${IN_ALT_SCREEN:-0}" == "1" ]]; then
|
||||||
leave_alt_screen
|
leave_alt_screen
|
||||||
@@ -63,9 +62,9 @@ is_installer_zip() {
|
|||||||
|
|
||||||
[[ ${#ZIP_LIST_CMD[@]} -gt 0 ]] || return 1
|
[[ ${#ZIP_LIST_CMD[@]} -gt 0 ]] || return 1
|
||||||
|
|
||||||
if ! "${ZIP_LIST_CMD[@]}" "$zip" 2>/dev/null \
|
if ! "${ZIP_LIST_CMD[@]}" "$zip" 2> /dev/null |
|
||||||
| head -n $((cap + 1)) \
|
head -n $((cap + 1)) |
|
||||||
| awk -v cap="$cap" '
|
awk -v cap="$cap" '
|
||||||
/\.(app|pkg|dmg|xip)(\/|$)/ { found=1 }
|
/\.(app|pkg|dmg|xip)(\/|$)/ { found=1 }
|
||||||
END {
|
END {
|
||||||
if (NR > cap) exit 1
|
if (NR > cap) exit 1
|
||||||
@@ -327,7 +326,6 @@ select_installers() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
handle_interrupt() {
|
handle_interrupt() {
|
||||||
restore_terminal
|
restore_terminal
|
||||||
exit 130
|
exit 130
|
||||||
@@ -655,7 +653,6 @@ show_summary() {
|
|||||||
printf '\n'
|
printf '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
|
|||||||
Reference in New Issue
Block a user