Fix local variable usage in ba_configure()
authorBryn M. Reeves <bmr@redhat.com>
Tue, 22 Jan 2013 12:26:54 +0000 (12:26 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 22 Jan 2013 12:26:54 +0000 (12:26 +0000)
blkdevalias

index 8a6dfa1..e701004 100755 (executable)
@@ -308,17 +308,17 @@ EOF
     _debug "BA_USER=\"$BA_USER\""
     _debug "BA_GROUP=\"$BA_GROUP\""
     _print -n "Writing wwid map configuration: "
     _debug "BA_USER=\"$BA_USER\""
     _debug "BA_GROUP=\"$BA_GROUP\""
     _print -n "Writing wwid map configuration: "
-    TMP_CONF=$(mktemp --tmpdir=$BA_CONF_PATH)
-    if [ ! -f "$TMP_CONF" ]; then
+    _TMP_CONF=$(mktemp --tmpdir=$BA_CONF_PATH)
+    if [ ! -f "$_TMP_CONF" ]; then
         _print
         _error "could not write temporary file"
         exit 1
     fi
         _print
         _error "could not write temporary file"
         exit 1
     fi
-    ba_store_conf_header $TMP_CONF
-    echo "BA_DEV_PATH=\"$BA_DEV_PATH\"" >> $TMP_CONF
-    echo "BA_USER=\"$BA_USER\"" >> $TMP_CONF
-    _print "BA_GROUP=\"$BA_GROUP\"" >> $TMP_CONF
-    mv $TMP_CONF $BA_CONF
+    ba_store_conf_header $_TMP_CONF
+    echo "BA_DEV_PATH=\"$BA_DEV_PATH\"" >> $_TMP_CONF
+    echo "BA_USER=\"$BA_USER\"" >> $_TMP_CONF
+    _print "BA_GROUP=\"$BA_GROUP\"" >> $_TMP_CONF
+    mv $_TMP_CONF $BA_CONF
     if [ "$?" != 0 ]; then
         _error "could not create configuration file $BA_CONF"
         exit
     if [ "$?" != 0 ]; then
         _error "could not create configuration file $BA_CONF"
         exit