summaryrefslogtreecommitdiff
path: root/scripts/install/install-get-partition
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-08 09:38:50 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-08 09:38:50 -0700
commitec91bcae52bb39fcf6800660063447393d0407e5 (patch)
treed629eea53792706f1cc4cc10f3152f4a63a0a94d /scripts/install/install-get-partition
parent84c8616cb9b8f3847f6a8581e49e92d02b335beb (diff)
downloadvyatta-cfg-system-ec91bcae52bb39fcf6800660063447393d0407e5.tar.gz
vyatta-cfg-system-ec91bcae52bb39fcf6800660063447393d0407e5.zip
Fix quoting of shell -z
The -z test in shell needs to be quoted to avoid issues with shell expansion.
Diffstat (limited to 'scripts/install/install-get-partition')
-rwxr-xr-xscripts/install/install-get-partition4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index 85c10358..8b4bd406 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -37,7 +37,7 @@ ROOT_FSTYPE='ext3'
warn_of_dire_consequences () {
# Give the user a requisite warning that we are about to nuke their drive
response=''
- while [ -z $response ]; do
+ while [ -z "$response" ]; do
echo "This will destroy all data on /dev/$INSTALL_DRIVE."
echo -n "Continue? (Yes/No) [No]: "
response=$(get_response "No" "Yes No Y N")
@@ -857,7 +857,7 @@ unmount () {
echo "$mounted"
response=''
- while [ -z $response ]; do
+ while [ -z "$response" ]; do
echo -n "Continue (Yes/No) [No]: "
response=$(get_response "No" "Yes No Y N")
if [ "$response" == "no" ] || [ "$response" == "n" ]; then