mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 22:10:03 +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/ui/menu_paginated.sh"
|
||||
|
||||
|
||||
cleanup() {
|
||||
if [[ "${IN_ALT_SCREEN:-0}" == "1" ]]; then
|
||||
leave_alt_screen
|
||||
@@ -63,9 +62,9 @@ is_installer_zip() {
|
||||
|
||||
[[ ${#ZIP_LIST_CMD[@]} -gt 0 ]] || return 1
|
||||
|
||||
if ! "${ZIP_LIST_CMD[@]}" "$zip" 2>/dev/null \
|
||||
| head -n $((cap + 1)) \
|
||||
| awk -v cap="$cap" '
|
||||
if ! "${ZIP_LIST_CMD[@]}" "$zip" 2> /dev/null |
|
||||
head -n $((cap + 1)) |
|
||||
awk -v cap="$cap" '
|
||||
/\.(app|pkg|dmg|xip)(\/|$)/ { found=1 }
|
||||
END {
|
||||
if (NR > cap) exit 1
|
||||
@@ -327,7 +326,6 @@ select_installers() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
handle_interrupt() {
|
||||
restore_terminal
|
||||
exit 130
|
||||
@@ -655,7 +653,6 @@ show_summary() {
|
||||
printf '\n'
|
||||
}
|
||||
|
||||
|
||||
main() {
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
|
||||
Reference in New Issue
Block a user