Merge pull request #7 from depsterr/master

fixed issue with check always returning true
This commit is contained in:
Dylan Van Assche 2020-03-03 08:32:59 +00:00 committed by GitHub
commit c7f878a2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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