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