diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-12-10 14:15:51 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-12-10 14:15:51 -0200 |
commit | a8c1608fee73578358c3c17f76b44f0857c38ac0 (patch) | |
tree | 0888d5264a0fc1064b4930842e69475a00850b0c /lib/keyringer/actions/shell | |
parent | f695f7810ac91d9cd3f576dcb58f41e75e720129 (diff) | |
download | keyringer-a8c1608fee73578358c3c17f76b44f0857c38ac0.tar.gz keyringer-a8c1608fee73578358c3c17f76b44f0857c38ac0.tar.bz2 |
Integrating shell with all commands (#34)
Diffstat (limited to 'lib/keyringer/actions/shell')
-rwxr-xr-x | lib/keyringer/actions/shell | 4 |
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 |