diff options
author | Bruno Cornec <bruno@victoria.frmug.org> | 2019-10-20 20:06:09 +0200 |
---|---|---|
committer | Bruno Cornec <bruno@victoria.frmug.org> | 2019-10-20 20:06:09 +0200 |
commit | 1c25a157600ac79236272c71aa0dafb100444b25 (patch) | |
tree | 348ff738f29f13910c55e8e3313d219f9f6e3ab0 /create_arm_img_urpmi.sh | |
parent | e349d47c90ab9422996a41e178c1a31c80958313 (diff) | |
download | mageia4arm-1c25a157600ac79236272c71aa0dafb100444b25.tar mageia4arm-1c25a157600ac79236272c71aa0dafb100444b25.tar.gz mageia4arm-1c25a157600ac79236272c71aa0dafb100444b25.tar.bz2 mageia4arm-1c25a157600ac79236272c71aa0dafb100444b25.tar.xz mageia4arm-1c25a157600ac79236272c71aa0dafb100444b25.zip |
Fix an unbalanced if then else
Diffstat (limited to 'create_arm_img_urpmi.sh')
-rwxr-xr-x | create_arm_img_urpmi.sh | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index b16d9eb..37ab33a 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -813,20 +813,17 @@ if ! [ -d "$CONFIG_PATH" ];then fi fi - if [ -e "$CONFIG_PATH/mageia4arm.cfg" ];then - info "using $CONFIG_PATH/mageia4arm.cfg as config" - . "$CONFIG_PATH/mageia4arm.cfg" - else - warning "Config file does not exists, do you want i copy template ? [Y|n] " - read yn - if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then - /usr/bin/cp --preserve=mode "$SOURCE_PATH/mageia4arm.cfg.template" "$CONFIG_PATH/mageia4arm.cfg" - warning "You need now to modify the config file ($CONFIG_PATH/mageia4arm.cfg) and relaunch the script" - exit 2 - fi - fi +if [ -e "$CONFIG_PATH/mageia4arm.cfg" ];then + info "using $CONFIG_PATH/mageia4arm.cfg as config" + . "$CONFIG_PATH/mageia4arm.cfg" else - + warning "Config file does not exists, do you want i copy template ? [Y|n] " + read yn + if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then + /usr/bin/cp --preserve=mode "$SOURCE_PATH/mageia4arm.cfg.template" "$CONFIG_PATH/mageia4arm.cfg" + warning "You need now to modify the config file ($CONFIG_PATH/mageia4arm.cfg) and relaunch the script" + exit 2 + fi fi if ! [ -z "$IMAGE_SIZE_P" ];then |