summaryrefslogtreecommitdiffstats
path: root/bin/container-shell
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-10-25 13:13:01 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-10-25 13:13:01 +0000
commit07357f5916ea7380a6008b6e29d50c1889311491 (patch)
treed9f0c5fa35941b7484aaf575cc1aac90d7ac4b20 /bin/container-shell
parentReleasing debian version 20160801-1. (diff)
downloadopen-infrastructure-compute-tools-07357f5916ea7380a6008b6e29d50c1889311491.tar.xz
open-infrastructure-compute-tools-07357f5916ea7380a6008b6e29d50c1889311491.zip
Merging upstream version 20161101.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'bin/container-shell')
-rwxr-xr-xbin/container-shell7
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
}