From f734780f4e6939f2ff375e0b92fc00e152da1dcb Mon Sep 17 00:00:00 2001 From: depsterr Date: Tue, 25 Feb 2020 15:30:12 +0100 Subject: [PATCH] fixed issue with check always returning true --- flash-it.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash-it.sh b/flash-it.sh index 1c125a8..e8398c9 100755 --- a/flash-it.sh +++ b/flash-it.sh @@ -195,7 +195,7 @@ if [ $DEVICE_NODE == "./sdcard.img" ]; then fi # use p1, p2 extentions instead of 1, 2 when using sd drives -if [ [ $(echo $DEVICE_NODE | grep mmcblk) ] || [ $(echo $DEVICE_NODE | grep loop)] ]; then +if [ $(echo $DEVICE_NODE | grep mmcblk || echo $DEVICE_NODE | grep loop) ]; then BOOTPART="${DEVICE_NODE}p1" DATAPART="${DEVICE_NODE}p2" else