diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-12 01:51:32 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-12 01:51:32 -0400 |
commit | e498fed9f196c50f79ddd395688689d8761ae134 (patch) | |
tree | 3bffbd5c65a62b323fdcc25342d8c173b9d7a4e8 | |
parent | ce51d919bacc5a47a43c586aa5dadfa90d2494cd (diff) |
Sourcing a file from Bash checks the path, I don't need to hard-code it
-rw-r--r-- | jh-help.sh | 2 | ||||
-rw-r--r-- | jh-list-commands.sh | 2 | ||||
-rw-r--r-- | jh-mvn-basename.sh | 2 | ||||
-rw-r--r-- | jh-mvn-install.sh | 2 | ||||
-rw-r--r-- | jh-mvn-localrepo.sh | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -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 |