summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-04-07 12:47:21 +0200
committer Eric Hameleers <alien@slackware.com>2021-04-07 12:47:21 +0200
commit542bbe7c4735119ba204e9ff5fe7370bc9d883a5 (patch)
treec84c2d40aa0b80c0e108d11a35475fcd23c7212a /iso2usb.sh
parent9107bbae89ba516154f71f17b1f8af6b99bf6be5 (diff)
downloadliveslak-542bbe7c4735119ba204e9ff5fe7370bc9d883a5.tar.gz
liveslak-542bbe7c4735119ba204e9ff5fe7370bc9d883a5.tar.xz
Fix test syntax in iso2usb.sh
Diffstat (limited to 'iso2usb.sh')
-rw-r--r--iso2usb.sh4
1 files 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: