diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-06 16:06:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-06 16:06:56 -0300 |
commit | 8efac61538d8aba11b71be38575ebcd0a639c74f (patch) | |
tree | 3895ba0d64dc8e64ab720b6964187a933a99fb54 /lib | |
parent | eae5f0cb65faf2380b51d3dbc451136236e148b6 (diff) | |
download | hydra-8efac61538d8aba11b71be38575ebcd0a639c74f.tar.gz hydra-8efac61538d8aba11b71be38575ebcd0a639c74f.tar.bz2 |
Minor fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/action | 3 | ||||
-rw-r--r-- | lib/hydra/git | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/hydra/action b/lib/hydra/action index 868f301..0bd3725 100644 --- a/lib/hydra/action +++ b/lib/hydra/action @@ -18,7 +18,7 @@ function hydra_has_action { function hydra_exec { # Setup action="$1" - shift 2 + shift # Dispatch if hydra_has_action $action; then @@ -39,6 +39,7 @@ function hydra_get_command { # Action dispatcher function hydra_dispatch { + shift hydra_exec $ACTION $* } diff --git a/lib/hydra/git b/lib/hydra/git index 6e7f05a..34ba053 100644 --- a/lib/hydra/git +++ b/lib/hydra/git @@ -4,7 +4,7 @@ function hydra_git_ignore { if [ ! -z "$BASEDIR/.gitignore" ]; then echo $1 > $BASEDIR/.gitignore - hydra_exec git $BASEDIR add .gitignore + hydra_exec git $BASEDIR add .gitignore &> /dev/null else if ! grep -q -e "^$1$" $BASEDIR/.gitignore; then echo $1 >> $BASEDIR/.gitignore |