diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-10-25 13:10:17 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-10-25 13:10:17 +0000 |
commit | 17e90600218e654071457f0845968e143e8c5d15 (patch) | |
tree | f58c502fe6dadaef45e1a3844944905837b37e51 /bin/container-shell | |
parent | Adding upstream version 20160801. (diff) | |
download | open-infrastructure-compute-tools-17e90600218e654071457f0845968e143e8c5d15.tar.xz open-infrastructure-compute-tools-17e90600218e654071457f0845968e143e8c5d15.zip |
Adding upstream version 20161101.upstream/20161101
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'bin/container-shell')
-rwxr-xr-x | bin/container-shell | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/container-shell b/bin/container-shell index fd85d93..da91c76 100755 --- a/bin/container-shell +++ b/bin/container-shell @@ -23,6 +23,8 @@ PROGRAM="container" COMMAND="$(basename ${0})" +LC_ALL="C.UTF-8" + Usage () { echo "Usage: ${PROGRAM}-shell" >&2 @@ -64,6 +66,9 @@ Shell () echo "$(for COMMAND in about logout *; do echo ${COMMAND}; done | sort)" cd "${OLDPWD}" + echo + echo "Use 'help COMMAND' for more information." + return ;; @@ -82,7 +87,7 @@ Shell () return else echo - "/usr/lib/${SOFTWARE}/${PROGRAM}/${COMMAND}" "${OPTIONS}" || true + sudo "/usr/lib/${SOFTWARE}/${PROGRAM}/${COMMAND}" "${OPTIONS}" || true fi } |