etc-update: quote ${file} v2.2.0_alpha91
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2012 23:28:54 +0000 (16:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2012 23:28:54 +0000 (16:28 -0700)
bin/etc-update

index b0765207527411a086d1f57b445d792c41ee0ccc..b4f9eec53cfbd4334a568cec2a81c84310cfceab 100755 (executable)
@@ -391,7 +391,7 @@ do_cfg() {
        local ofile=$2
        local -i my_input=0
 
-       until (( my_input == -1 )) || [ ! -f ${file} ] ; do
+       until (( my_input == -1 )) || [ ! -f "${file}" ] ; do
                if [[ "${OVERWRITE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then
                        my_input=1
                elif [[ "${DELETE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then