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
ae5f2c9bae
commit
8ab082ef7f
3 changed files with 3 additions and 3 deletions
|
@ -208,7 +208,7 @@ _network() {
|
|||
fi
|
||||
_COUNT=$((_COUNT+1))
|
||||
# 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
|
||||
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
|
||||
|
|
|
@ -9,7 +9,7 @@ rm -r /usr/share/licenses
|
|||
pacman -Sy
|
||||
pacman -Q | cut -d ' ' -f1 >packages.txt
|
||||
for i in $(cat packages.txt); do
|
||||
rm -r /var/lib/pacman/local/${i}*
|
||||
rm -r /var/lib/pacman/local/"${i}"*
|
||||
#shellcheck disable=SC2086
|
||||
if pacman -S ${i} --noconfirm &>>log.txt; then
|
||||
echo "${i}" >> uninstalled.orig.txt
|
||||
|
|
|
@ -124,7 +124,7 @@ _update_environment() {
|
|||
sleep 2
|
||||
else
|
||||
_progress "100" "New kernel online available. Asking for update..."
|
||||
echo ${_ONLINE_KERNEL} > /.new_kernel
|
||||
echo "${_ONLINE_KERNEL}" > /.new_kernel
|
||||
sleep 2
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue