mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
shellcheck fixes
This commit is contained in:
parent
4a4781624a
commit
2af2aadfe1
1 changed files with 2 additions and 5 deletions
|
@ -16,7 +16,7 @@ _online_switch() {
|
|||
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
|
||||
else
|
||||
return 1
|
||||
_cleanup
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -102,10 +102,7 @@ _wireless() {
|
|||
|
||||
_network() {
|
||||
if [[ -e "/var/cache/pacman/pkg/archboot.db" ]]; then
|
||||
if ! _online_switch; then
|
||||
_cleanup
|
||||
exit 0
|
||||
fi
|
||||
_online_switch
|
||||
fi
|
||||
_NETPARAMETERS=""
|
||||
while [[ -z "${_NETPARAMETERS}" ]]; do
|
||||
|
|
Loading…
Reference in a new issue