]> git.proxmox.com Git - mirror_lxc.git/commit
handle simple bashisms:
authorElan Ruusamäe <glen@delfi.ee>
Mon, 13 Jan 2014 08:26:09 +0000 (10:26 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 14 Jan 2014 21:16:00 +0000 (16:16 -0500)
commit17abf2784de1047fb2904ff130ee5efe4ea7b598
treea5c230daee83d304b3065d9d58911c6ed68ccb58
parent3aa0acaf0cbb70088ef1517b3ed97c39f3693606
handle simple bashisms:

- [[ ]] -> [ ]
- == -> =
- source -> .
- redirect of fd 200 is error in mksh, use fd 9
- &> /dev/null -> > /dev/null 2>&1
- useless function keyword
- echo -e -> printf

still left bash shebang which did not validate with checkbashism, mostly
due 'type' being reported as bashism

Signed-Off-By: Elan Ruusamäe <glen@delfi.ee>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
12 files changed:
templates/lxc-alpine.in
templates/lxc-altlinux.in
templates/lxc-archlinux.in
templates/lxc-busybox.in
templates/lxc-centos.in
templates/lxc-debian.in
templates/lxc-openmandriva.in
templates/lxc-opensuse.in
templates/lxc-oracle.in
templates/lxc-sshd.in
templates/lxc-ubuntu-cloud.in
templates/lxc-ubuntu.in