add quotes to handles spaces in working dir

This commit is contained in:
Thomas Moerkerken
2022-06-05 13:30:18 +00:00
committed by Aiden McClelland
parent e0c68c1911
commit 18e2c610bc

View File

@@ -17,7 +17,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
cd $DIR/..
cd "$DIR/.."
truncate --size=$[(31116287+1)*512] eos.img
if [ -z "$OUTPUT_DEVICE" ]; then