]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
avoid assigning to a variable which is not POSIX shell proof (bug #1498) 1500/head
authorVincent Catros <vincent.catros@laposte.net>
Fri, 7 Apr 2017 15:14:44 +0000 (17:14 +0200)
committerVincent Catros <vincent.catros@laposte.net>
Fri, 7 Apr 2017 15:14:44 +0000 (17:14 +0200)
Signed-off-by: Vincent Catros <vincent.catros@laposte.net>
templates/lxc-alpine.in

index 44173eed32d44c5821f5707fc97d7503ab10893c..1547c2c1a1bf763c0a0238c4ba196d198fd5d6df 100644 (file)
@@ -263,8 +263,8 @@ install() {
 }
 
 install_packages() {
-       local arch="$1"; shift
-       local packages="$@"
+       local arch="$1"
+       local packages="$2"
 
        $APK --arch="$arch" --root=. --keys-dir="$APK_KEYS_DIR" \
                --update-cache --initdb add $packages