Commit 7858afac by Natanael Copa Committed by Stéphane Graber

lxc-create: do not use 'local'

Apparently 'local' is not POSIX. Don't use it. Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 11cbdf44
...@@ -68,9 +68,8 @@ usage_err() { ...@@ -68,9 +68,8 @@ usage_err() {
} }
optarg_check() { optarg_check() {
local opt="$1" optarg="$2" if [ -z "$2" ]; then
if [ -z "$optarg" ]; then usage_err "option '$1' requires an argument"
usage_err "option '$opt' requires an argument"
fi fi
} }
...@@ -84,7 +83,7 @@ vgname=lxc ...@@ -84,7 +83,7 @@ vgname=lxc
custom_rootfs="" custom_rootfs=""
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
local opt="$1" opt="$1"
shift shift
case "$opt" in case "$opt" in
-h|--help) -h|--help)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment