summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-20 21:47:47 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-20 21:47:47 +0000
commit8c4a9f07fe5547ee51fbbf4fb919a6b50c97c312 (patch)
tree59ba02bf87b63dacd39f502ade50f2d7de5f8d6e /bin/etc-update
parentc7b1b63b239ac16bb73247b86254a8beb9fcf84c (diff)
downloadportage-8c4a9f07fe5547ee51fbbf4fb919a6b50c97c312.tar.gz
portage-8c4a9f07fe5547ee51fbbf4fb919a6b50c97c312.tar.bz2
portage-8c4a9f07fe5547ee51fbbf4fb919a6b50c97c312.zip
Fix broken if/elif statement.
svn path=/main/trunk/; revision=3972
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 8e2cf51b6..a421d973a 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -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}" |