Fix broken if/elif statement.
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 21:47:47 +0000 (21:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 21:47:47 +0000 (21:47 -0000)
svn path=/main/trunk/; revision=3972

bin/etc-update

index 8e2cf51b6b72790f9d6e19e1e8dd6a7b2684ee3b..a421d973a6694bb8a4fb16b44598d50a498f6d1a 100755 (executable)
@@ -272,9 +272,9 @@ function do_cfg() {
        local -i my_input=0
        
        until (( ${my_input} == -1 )) || [ ! -f ${file} ]; do
-               if [[ "${OVERWRITE_ALL}" == "yes" && ! user_special ${ofile} ]]; then
+               if [[ "${OVERWRITE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then
                        my_input=1
-               elif [[ "${DELETE_ALL}" == "yes" && ! user_special ${ofile} ]]; then
+               elif [[ "${DELETE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then
                        my_input=2
                else
                  showdiffcmd=$(echo "${diff_command}" |