changed the layout, should not effect script behaviour

This commit is contained in:
pika 2025-05-19 13:59:53 +02:00
parent 293c4b9965
commit 0997cf8a9c
15 changed files with 386 additions and 294 deletions

View file

@ -75,6 +75,14 @@
}
main() {
if $silent; then
echo_warning "Executing script silently!"
fi
# if ! getDependencies; then
# echo_error "Error when installing dependencies.."
# fi
case "$distro" in
arch)
_install zen-browser-bin
@ -128,29 +136,52 @@
esac
}
setup() {
if getImports; then
case "$@" in
# setup() {
# if getImports; then
# case "$@" in
# --silent | -s)
# silent=true
# echo_warning "Running script silently!"
# ;;
# *)
# silent=false
# ;;
# esac
# fi
#
# if ! command_exists zen-browser; then
# return 0
# else
# echo_error "zen-browser does already exist on this machine!"
# return 69
# fi
# }
if getImports; then
# ─< package variable >───────────────────────────────────────────────────────────────────
unset PACKAGE
# ─< argument list variables >────────────────────────────────────────────────────────────
silent=false
sleep 0.1
PACKAGE=zen-browser
if command_exists "$PACKAGE"; then
echo_warning "$PACKAGE is already installed!"
echo_warning "Exiting now!"
exit 69
fi
# ─< parse arguments and get variable contents >──────────────────────────────────────────
for arg in "$@"; do
case "$arg" in
--silent | -s)
silent=true
echo_warning "Running script silently!"
;;
*)
silent=false
export silent=true
;;
esac
fi
done
if ! command_exists zen-browser; then
return 0
else
echo_error "zen-browser does already exist on this machine!"
return 69
fi
}
if setup "$@"; then
getDependencies
main </dev/tty
fi
}