add comment

This commit is contained in:
Tobias Powalowski 2022-12-12 15:16:13 +01:00
parent d51f6e689d
commit dc8da264c8

View file

@ -34,8 +34,10 @@ usage () {
if [[ ! -e "/var/cache/pacman/pkg/archboot.db" || -e "/usr/bin/setup" ]]; then
echo -e " \033[1m-u\033[0m Update scripts: setup, quickinst, tz, km and helpers."
fi
# latest image
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2500000 && ! -e "/.full_system" && ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then
echo -e " \033[1m-full-system\033[0m Switch to full Arch Linux system."
# local image
elif [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2571000 && ! -e "/.full_system" && -e "/var/cache/pacman/pkg/archboot.db" && -e "/usr/bin/setup" ]]; then
echo -e " \033[1m-full-system\033[0m Switch to full Arch Linux system."
fi