1
0

- corrected display of error number

This commit is contained in:
Daniel Tartavel 2018-08-04 00:14:36 +02:00
parent 154773db72
commit af29d974d3

View File

@ -675,10 +675,10 @@ if [ -d "$SOURCE_PATH/$CONFIG_PATH" ];then
read yn read yn
if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then
/usr/bin/cp "$SOURCE_PATH/mageia4arm.cfg.template" "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg" /usr/bin/cp "$SOURCE_PATH/mageia4arm.cfg.template" "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg"
fi
warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script" warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script"
exit 1 exit 1
fi fi
fi
else else
warning "Config directory does not exists, do you want i make it and copy the template file in? [Y|n] " warning "Config directory does not exists, do you want i make it and copy the template file in? [Y|n] "
read yn read yn
@ -788,4 +788,6 @@ case $OPT in
;; ;;
esac esac
if ! [ -z $ERRORN ];then
warning "Some errors occurs : $ERRORN errors" warning "Some errors occurs : $ERRORN errors"
fi