mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
update parameters and change completition
This commit is contained in:
parent
9804eb3b8f
commit
05fbfbecfe
2 changed files with 7 additions and 7 deletions
|
@ -14,7 +14,7 @@
|
|||
[[ -z "${1}" ]] && usage
|
||||
while [ $# -gt 0 ]; do
|
||||
case ${1} in
|
||||
-u|--u) _D_SCRIPTS="1" ;;
|
||||
-u|--u|-update|--update) _D_SCRIPTS="1" ;;
|
||||
-latest|--latest) _L_COMPLETE="1" ;;
|
||||
-latest-install|--latest-install) _L_INSTALL_COMPLETE="1";;
|
||||
-latest-image|--latest-image) _G_RELEASE="1" ;;
|
||||
|
@ -25,8 +25,8 @@ while [ $# -gt 0 ]; do
|
|||
-plasma-wayland|--plasma-wayland) _L_PLASMA_WAYLAND="1" ;;
|
||||
-custom-xorg|--custom-xorg) _CUSTOM_X="1" ;;
|
||||
-custom-wayland|--custom-wayland) _CUSTOM_WAYLAND="1" ;;
|
||||
-full-system) _FULL_SYSTEM="1" ;;
|
||||
-h|--h|?) usage ;;
|
||||
-full-system|--full-system) _FULL_SYSTEM="1" ;;
|
||||
-h|--h||-help|--help|?) usage ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
shift
|
||||
|
|
|
@ -29,12 +29,12 @@ _graphic_options() {
|
|||
}
|
||||
|
||||
usage () {
|
||||
echo -e "\033[1mUpdate installer, launch environments or create latest image files:\033[0m"
|
||||
echo -e "\033[1m-------------------------------------------------------------------\033[0m"
|
||||
echo -e "\033[1mUpdate And Manage Arch Linux - Archboot Environment:\033[0m"
|
||||
echo -e "\033[1m----------------------------------------------------\033[0m"
|
||||
echo -e "\033[1mPARAMETERS:\033[0m"
|
||||
echo -e " \033[1m-h\033[0m This message."
|
||||
echo -e " \033[1m-help\033[0m This message."
|
||||
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."
|
||||
echo -e " \033[1m-update\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
|
||||
|
|
Loading…
Reference in a new issue