Double-quote values

This commit is contained in:
Dmitri Popov
2018-08-23 12:19:46 +02:00
parent ba9c963773
commit 7a2842ae7d
4 changed files with 16 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ sudo shutdown -h $SHUTD "Shutdown is activated. To cancel: sudo shutdown -c"
# Wait for camera
DEVICE=$(gphoto2 --auto-detect | grep usb | cut -b 36-42 | sed 's/,/\//')
while [ -z ${DEVICE} ]
while [ -z "${DEVICE}" ]
do
sleep 1
DEVICE=$(gphoto2 --auto-detect | grep usb | cut -b 36-42 | sed 's/,/\//')