From e498fed9f196c50f79ddd395688689d8761ae134 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 12 May 2013 01:51:32 -0400 Subject: Sourcing a file from Bash checks the path, I don't need to hard-code it --- jh-help.sh | 2 +- jh-list-commands.sh | 2 +- jh-mvn-basename.sh | 2 +- jh-mvn-install.sh | 2 +- jh-mvn-localrepo.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jh-help.sh b/jh-help.sh index a88206c..31fbf6e 100644 --- a/jh-help.sh +++ b/jh-help.sh @@ -1,5 +1,5 @@ #!/bin/bash -. /usr/bin/jh +. jh case $# in 0) usage ''; exit 0;; diff --git a/jh-list-commands.sh b/jh-list-commands.sh index 290b4e1..143f6e7 100644 --- a/jh-list-commands.sh +++ b/jh-list-commands.sh @@ -1,5 +1,5 @@ #!/bin/bash -. /usr/bin/jh +. jh if [[ $# > 0 ]]; then usage diff --git a/jh-mvn-basename.sh b/jh-mvn-basename.sh index 5b9dad4..776cc0e 100644 --- a/jh-mvn-basename.sh +++ b/jh-mvn-basename.sh @@ -1,5 +1,5 @@ #!/bin/bash -. /usr/bin/jh +. jh if [[ $# != 3 ]]; then usage diff --git a/jh-mvn-install.sh b/jh-mvn-install.sh index 6f1fd19..23c0d6a 100644 --- a/jh-mvn-install.sh +++ b/jh-mvn-install.sh @@ -1,5 +1,5 @@ #!/bin/bash -. /usr/bin/jh +. jh if [[ $# != 5 ]]; then usage diff --git a/jh-mvn-localrepo.sh b/jh-mvn-localrepo.sh index 32a91f0..14ea778 100644 --- a/jh-mvn-localrepo.sh +++ b/jh-mvn-localrepo.sh @@ -1,5 +1,5 @@ #!/bin/bash -. /usr/bin/jh +. jh if [[ $# > 0 ]]; then usage -- cgit v1.2.3-54-g00ecf