]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-create: use posix shell instead of bash
authorNatanael Copa <ncopa@alpinelinux.org>
Fri, 16 Nov 2012 16:01:55 +0000 (17:01 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 21 Nov 2012 19:36:08 +0000 (14:36 -0500)
commite60a8164c12d565f70071ff6b32b823dd495df9e
treecdca394bd9a93da0e03e9efb4dc50630d2988588
parentc3752c0b5926c3d5d3361c8127708da83e585928
lxc-create: use posix shell instead of bash

- use '[ -x /path/prog ]' instead of 'type /path/prog'
- avoid getopt --longoptions
- add \ at after && and || when those are at end of line
- make sure condition expands to empty string if variable is empty

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-create.in