From dfb3e77a18e54213aa40192f1c2b7fae887da62c Mon Sep 17 00:00:00 2001 From: Jybz Date: Sun, 29 Nov 2020 14:42:09 +0100 Subject: move auto log to ./log instead of ./ --- create_arm_image.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/create_arm_image.sh b/create_arm_image.sh index 01625b8..cf50d82 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -62,7 +62,8 @@ if [ 0 -ne $(echo "${CMD_LINE}" | grep -c '\-\-log') ]; then fi LOGFILE="$(echo "${CMD_LINE}" | sed -e 's/^.*--log //' | sed -e 's/[[:space:]]*--.*$//' )" if [ "x" = "${LOGFILE}x" ]; then - LOGFILE="./mga4arm-$(date "+%Y-%m-%d-%H:%M:%S")-${CONFIG_NAME}.log" + mkdir -p ./log + LOGFILE="./log/mga4arm-$(date "+%Y-%m-%d-%H:%M:%S")-${CONFIG_NAME}.log" LOGCMD="--log " else LOGCMD="--log ${lOGFILE}" @@ -127,6 +128,7 @@ while true; do shift 2 ;; --build-path) + mkdir -p ${2} INSTALL_PATH_P=$(readlink -f "${2}") shift 2 ;; @@ -278,6 +280,7 @@ NONFREE="${NONFREE_P:=0}" TAINTED="${TAINTED_P:=0}" #name of the image +# TODO Add nonfree if image contains nonfree drivers for example. DESKTOP_NAME="${DESKTOP:="noDE"}" IMAGE_BASE="Mageia-${MAGEIA_VERSION}-${TARGET}" IMAGE="${IMAGE_BASE}-${DESKTOP_NAME}.img" -- cgit v1.2.1