[lxc-devel] [lxc/stable-2.0] make Alpine template more POSIX shell friendly #1498
BegBlev on Github
lxc-bot at linuxcontainers.org
Mon Apr 10 14:46:40 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 398 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170410/825d63e9/attachment.bin>
-------------- next part --------------
From 9e8e73141fe0f48350daa568b14881beb56fbd28 Mon Sep 17 00:00:00 2001
From: Vincent Catros <vincent.catros at laposte.net>
Date: Fri, 7 Apr 2017 17:14:44 +0200
Subject: [PATCH] avoid assigning to a variable which is not POSIX shell proof
(bug #1498)
Signed-off-by: Vincent Catros <vincent.catros at laposte.net>
(cherry picked from commit 7276799bd7de7b147d4f3fed62ee30917dc22c3a)
---
templates/lxc-alpine.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 6100a8d..e66c469 100644
--- a/templates/lxc-alpine.in
+++ b/templates/lxc-alpine.in
@@ -261,8 +261,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
More information about the lxc-devel
mailing list