From f58aac98a069c694d2a5791eb96a7554af6b798f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 10 Dec 2013 17:36:04 -0200 Subject: Run shell by default (#34) --- keyringer | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'keyringer') diff --git a/keyringer b/keyringer index 33d19ff..9c45d97 100755 --- a/keyringer +++ b/keyringer @@ -162,12 +162,14 @@ source "$LIB" || exit 1 # Setup main configuration and load preferences keyringer_config_load -if [ -z "$ACTION" ]; then +# Dispatch +if [ -z "$KEYRING" ]; then keyringer_usage exit 1 -fi - -if [ "$ACTION" == "init" ]; then +elif [ -z "$ACTION" ]; then + # Run shell if no action were given + keyringer $KEYRING shell +elif [ "$ACTION" == "init" ]; then keyringer_init $* elif keyringer_has_action "$ACTION"; then keyringer_dispatch $* -- cgit v1.2.3