From dd5ecf6785d417c0d01b3426252e5af1d69e48f1 Mon Sep 17 00:00:00 2001 From: Jybz Date: Sun, 30 Aug 2020 15:27:23 +0200 Subject: update help, remove useless comment --- create_arm_image.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'create_arm_image.sh') diff --git a/create_arm_image.sh b/create_arm_image.sh index 34dcfd6..b46947a 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -42,7 +42,7 @@ function help() { echo -e "--add-urpmimedia add mirrors for urpmi" echo -e "--chroot chroot to arm directory and launch packages installation" echo -e "--create-image Create the image of Mageia ${MAGEIA_VERSION}" - echo -e "--config Path to config files (rpi1 rpi2 rpi3 rpi3+ xu4)" + echo -e "--config Path to config files (rpi2 rpi3 rpi3+ xu4 bananaPro)" echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)" } @@ -62,7 +62,6 @@ fi SOURCE_PATH="$(/usr/bin/dirname "$(readlink -f "${0}")")" INSTALL_PATH="$(pwd)/build" -# FILES_PATH="${SOURCE_PATH}/files" PLATFORMS_PATH="${SOURCE_PATH}/platforms" INSTALL_METHOD="urpmi" @@ -81,7 +80,6 @@ if [ ${?} -ne 0 ] ; then error "line ${LINENO} Failed parsing options." >&2 ; ex eval set -- "${TEMP}" echo "${TEMP}" -# Note the quotes around `$TEMP': they are essential! Or not, $( ) do the same as ` `. But there are the ` ' used ? while true; do case "${1}" in --add-urpmimedia) @@ -270,9 +268,7 @@ if [ "${OPT}" != "clean" ]; then fi #if no parameters then display help message -if [ -z ${OPT} ]; then - OPT="--help" -fi +OPT=${OPT:="--help"} info "Image size is: ${IMAGE_SIZE} GB" -- cgit v1.2.1