shellcheck fixes

This commit is contained in:
Tobias Powalowski 2023-08-04 16:15:43 +02:00
parent ae5f2c9bae
commit 8ab082ef7f
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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
}