Apparently 'local' is not POSIX. Don't use it.

Signed-off-by: Natanael Copa <nc...@alpinelinux.org>
---
 src/lxc/lxc-create.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index 26ec6a2..30f0c22 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -68,9 +68,8 @@ usage_err() {
 }
 
 optarg_check() {
-    local opt="$1" optarg="$2"
-    if [ -z "$optarg" ]; then
-        usage_err "option '$opt' requires an argument"
+    if [ -z "$2" ]; then
+        usage_err "option '$1' requires an argument"
     fi
 }
 
@@ -84,7 +83,7 @@ vgname=lxc
 custom_rootfs=""
 
 while [ $# -gt 0 ]; do
-        local opt="$1"
+        opt="$1"
         shift
         case "$opt" in
            -h|--help)
-- 
1.8.0


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to