shellcheck fixes

This commit is contained in:
Tobias Powalowski 2023-07-21 15:50:38 +02:00
parent 4a4781624a
commit 2af2aadfe1

View file

@ -16,7 +16,7 @@ _online_switch() {
if _dialog --title " Offline Mode " --defaultno --yesno "Do you want to switch to Online Mode?" 5 45; then if _dialog --title " Offline Mode " --defaultno --yesno "Do you want to switch to Online Mode?" 5 45; then
rm /var/cache/pacman/pkg/archboot.db rm /var/cache/pacman/pkg/archboot.db
else else
return 1 _cleanup
fi fi
} }
@ -102,10 +102,7 @@ _wireless() {
_network() { _network() {
if [[ -e "/var/cache/pacman/pkg/archboot.db" ]]; then if [[ -e "/var/cache/pacman/pkg/archboot.db" ]]; then
if ! _online_switch; then _online_switch
_cleanup
exit 0
fi
fi fi
_NETPARAMETERS="" _NETPARAMETERS=""
while [[ -z "${_NETPARAMETERS}" ]]; do while [[ -z "${_NETPARAMETERS}" ]]; do