Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11673 - main/trunk/bin
Date: Fri, 10 Oct 2008 22:02:18
Message-Id: E1KoQ3s-0000n2-5P@stork.gentoo.org
1 Author: vapier
2 Date: 2008-10-10 22:02:15 +0000 (Fri, 10 Oct 2008)
3 New Revision: 11673
4
5 Modified:
6 main/trunk/bin/etc-update
7 Log:
8 only use dummy echos in do_file() when running in interactive mode
9
10 Modified: main/trunk/bin/etc-update
11 ===================================================================
12 --- main/trunk/bin/etc-update 2008-10-10 20:33:08 UTC (rev 11672)
13 +++ main/trunk/bin/etc-update 2008-10-10 22:02:15 UTC (rev 11673)
14 @@ -227,7 +227,8 @@
15 }
16
17 do_file() {
18 - echo
19 + interactive_echo() { [ "${OVERWRITE_ALL}" != "yes" ] && [ "${DELETE_ALL}" != "yes" ] && echo; }
20 + interactive_echo
21 local -i my_input
22 local -i fcount=0
23 until (( $(wc -l < ${TMP}/files/${input}) < 2 )); do
24 @@ -296,7 +297,7 @@
25 break
26 fi
27 done
28 - echo
29 + interactive_echo
30 rm ${TMP}/files/${input}
31 count=${count}-1
32 }