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
ae5f2c9bae
commit
8ab082ef7f
3 changed files with 3 additions and 3 deletions
|
@ -208,7 +208,7 @@ _network() {
|
||||||
fi
|
fi
|
||||||
_COUNT=$((_COUNT+1))
|
_COUNT=$((_COUNT+1))
|
||||||
# abort after 10 seconds
|
# abort after 10 seconds
|
||||||
_progress "$((${_COUNT}*10))" "Waiting $((10-${_COUNT})) seconds for network link to come up..."
|
_progress "$((_COUNT*10))" "Waiting $((10-_COUNT)) seconds for network link to come up..."
|
||||||
[[ "${_COUNT}" == 10 ]] && break
|
[[ "${_COUNT}" == 10 ]] && break
|
||||||
done | _dialog --title " Network Configuration " --no-mouse --gauge "Waiting 10 seconds for network link to come up..." 6 60 0
|
done | _dialog --title " Network Configuration " --no-mouse --gauge "Waiting 10 seconds for network link to come up..." 6 60 0
|
||||||
if ! getent hosts www.google.com &>"${_LOG}"; then
|
if ! getent hosts www.google.com &>"${_LOG}"; then
|
||||||
|
|
|
@ -9,7 +9,7 @@ rm -r /usr/share/licenses
|
||||||
pacman -Sy
|
pacman -Sy
|
||||||
pacman -Q | cut -d ' ' -f1 >packages.txt
|
pacman -Q | cut -d ' ' -f1 >packages.txt
|
||||||
for i in $(cat packages.txt); do
|
for i in $(cat packages.txt); do
|
||||||
rm -r /var/lib/pacman/local/${i}*
|
rm -r /var/lib/pacman/local/"${i}"*
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
if pacman -S ${i} --noconfirm &>>log.txt; then
|
if pacman -S ${i} --noconfirm &>>log.txt; then
|
||||||
echo "${i}" >> uninstalled.orig.txt
|
echo "${i}" >> uninstalled.orig.txt
|
||||||
|
|
|
@ -124,7 +124,7 @@ _update_environment() {
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
else
|
||||||
_progress "100" "New kernel online available. Asking for update..."
|
_progress "100" "New kernel online available. Asking for update..."
|
||||||
echo ${_ONLINE_KERNEL} > /.new_kernel
|
echo "${_ONLINE_KERNEL}" > /.new_kernel
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue