From af29d974d31bb2fb0ba6cfe80623c2c1a858d3d4 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sat, 4 Aug 2018 00:14:36 +0200 Subject: [PATCH] - corrected display of error number --- create_arm_img_urpmi.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index 2ed00c6..8e3b21a 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -675,9 +675,9 @@ if [ -d "$SOURCE_PATH/$CONFIG_PATH" ];then read yn if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then /usr/bin/cp "$SOURCE_PATH/mageia4arm.cfg.template" "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg" + warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script" + exit 1 fi - warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script" - exit 1 fi else warning "Config directory does not exists, do you want i make it and copy the template file in? [Y|n] " @@ -788,4 +788,6 @@ case $OPT in ;; esac -warning "Some errors occurs : $ERRORN errors" +if ! [ -z $ERRORN ];then + warning "Some errors occurs : $ERRORN errors" +fi