Add comments.

This commit is contained in:
clsty
2024-01-04 09:35:38 +08:00
parent e1fba5699c
commit 48c66b4bda
+3
View File
@@ -71,12 +71,15 @@ IFS_old=$IFS
#####################################################################################
printf '\e[36m1. Get packages and add user to video/input groups\n\e[97m'
# Each line as an element of the array $pkglist
readarray -t pkglist < dependencies.txt
# NOTE: wayland-idle-inhibitor-git is for providing `wayland-idle-inhibitor.py' used by the `Keep system awake' button in `.config/ags/widgets/sideright/quicktoggles.js'.
if $ask;then
# execute per element of the array $pkglist
for i in "${pkglist[@]}";do v yay -S --needed $i;done
else
# execute for all elements of the array $pkglist in one line
v yay -S --needed --noconfirm "${pkglist[*]}"
fi