- corrected some bugs
This commit is contained in:
		@@ -36,7 +36,7 @@ function error()
 | 
				
			|||||||
	echo -e "\e[1;31m$1\e[0m"
 | 
						echo -e "\e[1;31m$1\e[0m"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SOURCE_PATH="$(/bin/dirname  \"$(readlink -f \"$0\")\")"
 | 
					SOURCE_PATH="$(/bin/dirname  "$(readlink -f "$0")")"
 | 
				
			||||||
INSTALL_PATH="$SOURCE_PATH/arm"
 | 
					INSTALL_PATH="$SOURCE_PATH/arm"
 | 
				
			||||||
FILES_PATH="$SOURCE_PATH/files"
 | 
					FILES_PATH="$SOURCE_PATH/files"
 | 
				
			||||||
CMDNAME=$(/bin/basename -z "$0")
 | 
					CMDNAME=$(/bin/basename -z "$0")
 | 
				
			||||||
@@ -162,7 +162,7 @@ function createchroot()
 | 
				
			|||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	title "Creating $BUILD_PATH"
 | 
						title "Creating $BUILD_PATH"
 | 
				
			||||||
	/bin/mkdir -p "$BUILD_PATH/usr/bin $BUILD_PATH/usr/lib/binfmt.d"
 | 
						/bin/mkdir -p "$BUILD_PATH/usr/bin" "$BUILD_PATH/usr/lib/binfmt.d"
 | 
				
			||||||
	if [ $? -ne 0 ];then
 | 
						if [ $? -ne 0 ];then
 | 
				
			||||||
		error "line $LINENO can't create $BUILD_PATH : exiting"
 | 
							error "line $LINENO can't create $BUILD_PATH : exiting"
 | 
				
			||||||
		exit 1
 | 
							exit 1
 | 
				
			||||||
@@ -643,9 +643,8 @@ if [ -d "$SOURCE_PATH/$CONFIG_PATH" ];then
 | 
				
			|||||||
		warning "Config file does not exists, do you want i copy template ? [Y|n] "
 | 
							warning "Config file does not exists, do you want i copy template ? [Y|n] "
 | 
				
			||||||
		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/config.template" "$SOURCE_PATH/$CONFIG_PATH/config.txt"
 | 
								/usr/bin/cp "$SOURCE_PATH/config.txt.template" "$SOURCE_PATH/$CONFIG_PATH/config.txt"
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
		/usr/bin/cp "$SOURCE_PATH/config.template" "$SOURCE_PATH/$CONFIG_PATH/config.txt"
 | 
					 | 
				
			||||||
		warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/config.txt) and relaunch the script"
 | 
							warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/config.txt) and relaunch the script"
 | 
				
			||||||
		exit 1
 | 
							exit 1
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user