From 8acc18a0b4537f3c5f323e172e5ccaa86b6937d5 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 29 Jun 2014 19:47:41 +0200 Subject: Fix avoid local bashism in tweaks, to work also in script.sh. --- tweaks/base | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tweaks/base') 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 -- cgit v1.2.3