From 542bbe7c4735119ba204e9ff5fe7370bc9d883a5 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 7 Apr 2021 12:47:21 +0200 Subject: Fix test syntax in iso2usb.sh --- iso2usb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iso2usb.sh b/iso2usb.sh index cd485ee..4bb33f1 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -672,9 +672,9 @@ if [ $REFRESH -eq 0 ]; then if [ -z "$LP3" ]; then LP3=$(echo $DEF_LAYOUT |cut -d, -f3) ; fi LP3_START=$(( ${LP2_END} + 1 )) # The end of partition 3 depends on both values of LP3 and LP4: - if [ -n "${LP4}" -a ${LP4} -gt 0 ]; then + if [ -n "${LP4}" ] && [ ${LP4} -gt 0 ]; then LP3_END=$(( $ENDSECT - ( $LP4 * 2048 ) -1 )) - elif [ -n "${LP3}" -a ${LP3} -gt 0 ]; then + elif [ -n "${LP3}" ] && [ ${LP3} -gt 0 ]; then LP3_END=$(( ${LP3_START} + ( $LP3 *2048 ) - 1 )) else # Give all remaining space to partition 3: -- cgit v1.2.3