Browse Source

Fix an unbalanced if then else

Bruno Cornec 2 years ago
parent
commit
1c25a15760
1 changed files with 10 additions and 13 deletions
  1. 10 13
      create_arm_img_urpmi.sh

+ 10 - 13
create_arm_img_urpmi.sh

@@ -813,20 +813,17 @@ if ! [ -d "$CONFIG_PATH" ];then
813 813
     fi
814 814
 fi
815 815
 
816
-	if [ -e "$CONFIG_PATH/mageia4arm.cfg" ];then
817
-		info "using $CONFIG_PATH/mageia4arm.cfg as config"
818
-		. "$CONFIG_PATH/mageia4arm.cfg"
819
-	else
820
-		warning "Config file does not exists, do you want i copy template ? [Y|n] "
821
-		read yn
822
-		if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then
823
-			/usr/bin/cp --preserve=mode "$SOURCE_PATH/mageia4arm.cfg.template" "$CONFIG_PATH/mageia4arm.cfg"
824
-			warning "You need now to modify the config file ($CONFIG_PATH/mageia4arm.cfg) and relaunch the script"
825
-			exit 2
826
-		fi
827
-	fi
816
+if [ -e "$CONFIG_PATH/mageia4arm.cfg" ];then
817
+	info "using $CONFIG_PATH/mageia4arm.cfg as config"
818
+	. "$CONFIG_PATH/mageia4arm.cfg"
828 819
 else
829
-	
820
+	warning "Config file does not exists, do you want i copy template ? [Y|n] "
821
+	read yn
822
+	if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then
823
+		/usr/bin/cp --preserve=mode "$SOURCE_PATH/mageia4arm.cfg.template" "$CONFIG_PATH/mageia4arm.cfg"
824
+		warning "You need now to modify the config file ($CONFIG_PATH/mageia4arm.cfg) and relaunch the script"
825
+		exit 2
826
+	fi
830 827
 fi
831 828
 
832 829
 if ! [ -z "$IMAGE_SIZE_P" ];then