aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/shell
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-10 14:15:51 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-10 14:15:51 -0200
commita8c1608fee73578358c3c17f76b44f0857c38ac0 (patch)
tree0888d5264a0fc1064b4930842e69475a00850b0c /lib/keyringer/actions/shell
parentf695f7810ac91d9cd3f576dcb58f41e75e720129 (diff)
downloadkeyringer-a8c1608fee73578358c3c17f76b44f0857c38ac0.tar.gz
keyringer-a8c1608fee73578358c3c17f76b44f0857c38ac0.tar.bz2
Integrating shell with all commands (#34)
Diffstat (limited to 'lib/keyringer/actions/shell')
-rwxr-xr-xlib/keyringer/actions/shell4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/keyringer/actions/shell b/lib/keyringer/actions/shell
index d9a3e07..955dfe8 100755
--- a/lib/keyringer/actions/shell
+++ b/lib/keyringer/actions/shell
@@ -12,8 +12,10 @@ SHELLPATH="/"
# While a "quit" command isn't entered, read STDIN
while read -rep "keyringer:/${KEYRING}${SHELLPATH}> " STDIN; do
- if [ "$STDIN" == "quit" ]; then
+ if [ "$STDIN" == "quit" ] || [ "$STDIN" == "exit" ] || [ "$STDIN" == "bye" ]; then
break
+ elif [ "$STDIN" == "shell" ]; then
+ echo "Why you need nesting?"
elif [[ "$STDIN" == "cd"* ]]; then
# Update current path