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() {
}
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)
......
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