mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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
|
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
|
||||||
|
|
Loading…
Reference in a new issue