From ea3d1d46d0537705ef5771bea985ed0cc63e45c2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 14:22:02 +0000 Subject: fix quoting --- rescue/restore-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rescue/restore-image.sh') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index ade481511..358dbffed 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -86,7 +86,7 @@ function detect_root() dev=$(sed '\|'$restore_media'|!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts) devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${dev} | awk '$3 > '$MIN_DISKSIZE' { print $4,$3 }') - if [ -z ${devices} ]; then + if [ -z "${devices}" ]; then exit 1 fi -- cgit v1.2.1