summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-12 22:22:53 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-12 22:22:53 -0800
commit46cf3e08bc2312414fa482b8674df5ede52cbe91 (patch)
tree027669c6b7ffd940e51d31104e0f996576d8bfa8
parent99ec8de8e69f71e9a3f04dc318c7c741c5e6563a (diff)
downloadportage-46cf3e08bc2312414fa482b8674df5ede52cbe91.tar.gz
portage-46cf3e08bc2312414fa482b8674df5ede52cbe91.tar.bz2
portage-46cf3e08bc2312414fa482b8674df5ede52cbe91.zip
etc-update: replace 'seq' with pure bashv2.2.0_alpha8
-rwxr-xr-xbin/etc-update9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/etc-update b/bin/etc-update
index d4ed6e689..3e7bd4f72 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -460,11 +460,13 @@ do_distconf() {
local suffix
local efile
- for count in $(seq 0 9999); do
+ count=0
+ while true ; do
size=${#count}
- let fill=$((4-$size))
+ fill=$((4-$size))
suffix=".dist_"
- for f in $(seq 1 $fill); do
+ while [ $fill -gt 0 ] ; do
+ ((fill--))
suffix+="0"
done
suffix+="${count}"
@@ -474,6 +476,7 @@ do_distconf() {
mv ${mv_opts} ${file} ${efile}
break
fi
+ ((count++))
done
}