summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-06-29 19:47:41 +0200
committerJonas Smedegaard <dr@jones.dk>2014-06-29 19:47:48 +0200
commit8acc18a0b4537f3c5f323e172e5ccaa86b6937d5 (patch)
tree652d48028b64e28d3206996a066fc5059314d7ae
parent0f9fae4a8fb7fc6a2425f0def587e13f93baca84 (diff)
Fix avoid local bashism in tweaks, to work also in script.sh.
-rw-r--r--tweaks/base6
1 files changed, 3 insertions, 3 deletions
diff --git a/tweaks/base b/tweaks/base
index 9a2c9a6..eba954a 100644
--- a/tweaks/base
+++ b/tweaks/base
@@ -8,10 +8,10 @@ _pkg2re(){ set -e
_pkgreal(){ set -e
chroot /target dpkg-query -Wf='${Package},${Provides},\n'|sed -r "/,,/d;s/^([a-z0-9.+-]+).*[,|] *($(_pkg2re $*))[ :,]/\1/;/,/d"; }
_pkganddeepdeps(){ set -e
- local rest=$*
- local all=$rest
+ rest=$*
+ all=$rest
for i in 1 2 3 4 5
- do local deps=$(_pkgdeps $rest)
+ do deps=$(_pkgdeps $rest)
rest="$deps $(_pkgreal $deps)"
all="$all $rest"
done