summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-18 17:27:55 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-18 17:27:55 -0400
commit1b79183079998bc670df23a3d72e16ffc7a59d70 (patch)
treea9d96c6bff316e54256195ce25e1c8b8482bc0be
parentb84f3f95f0835b26856663faf564b29b23961d03 (diff)
fix several "small" problems
-rw-r--r--jh-mksource.sh5
-rw-r--r--jh-mvn-install.sh2
-rw-r--r--jh.sh1
3 files changed, 7 insertions, 1 deletions
diff --git a/jh-mksource.sh b/jh-mksource.sh
index c40a739..31e40c7 100644
--- a/jh-mksource.sh
+++ b/jh-mksource.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+quote () {
+ local quoted=${1//\'/\'\\\'\'};
+ printf "'%s'" "$quoted"
+}
+
quote_args() {
for arg in "$@"; do
quote "$arg"
diff --git a/jh-mvn-install.sh b/jh-mvn-install.sh
index 2be9cce..6f1fd19 100644
--- a/jh-mvn-install.sh
+++ b/jh-mvn-install.sh
@@ -6,7 +6,7 @@ if [[ $# != 5 ]]; then
exit 1
fi
-base="`$jh_cmd mvn-basename $1 $2 $3"
+base="`$jh_cmd mvn-basename $1 $2 $3`"
jarfile=$4
pomfile=$5
diff --git a/jh.sh b/jh.sh
index 7dfe3c5..6ba8237 100644
--- a/jh.sh
+++ b/jh.sh
@@ -11,6 +11,7 @@ fi
usage() {
cmd="${1-$0}"
+ cmd="${cmd##*/}"
file="$JH_PATH/jh-$cmd.help.txt"
if [[ -z "$cmd" ]]; then
echo "Usage: $jh_short <command> [command-specific-arguments]"