diff options
author | Noah Slater <nslater@apache.org> | 2008-06-15 17:00:58 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2008-06-15 17:00:58 +0000 |
commit | 5d6be4a5424b7b4b860a955efe453b306817fe0d (patch) | |
tree | 0fed2e2cd285b6fe14816305c08fdbd7a042e339 /bin/couchjs.tpl.in | |
parent | 081daf1250c079efc38a6be9c04984718d441a1f (diff) |
more portability changes for OpenSolaris
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin/couchjs.tpl.in')
-rw-r--r-- | bin/couchjs.tpl.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/couchjs.tpl.in b/bin/couchjs.tpl.in index 0bc84f2f..af5399a2 100644 --- a/bin/couchjs.tpl.in +++ b/bin/couchjs.tpl.in @@ -19,7 +19,7 @@ SCRIPT_ERROR=1 DEFAULT_VERSION=170 -basename=$(basename $0) +basename=`basename $0` display_version () { # Display version and copyright information. @@ -79,7 +79,7 @@ run_couchjs () { parse_script_option_list () { # Parse the script option list and take the appropriate action. - if ! argument_list=$(getopt hV $@); then + if test ! argument_list=`getopt hV $@`; then display_error fi eval set -- "$argument_list" @@ -91,7 +91,7 @@ parse_script_option_list () { *) break;; esac done - option_list=$(echo $@ | sed 's/--//') + option_list=`echo $@ | sed 's/--//'` if test -z "$option_list"; then display_error "You must specify a FILE." fi |