diff options
author | Noah Slater <nslater@apache.org> | 2009-03-20 17:26:59 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-03-20 17:26:59 +0000 |
commit | ba543146ea71b218b26a0660f9d28eea817c8fe5 (patch) | |
tree | c2f4182c58930a8575810d98fbba90ff37c39b87 /bin | |
parent | 083b26df25ea661c6c67b66d62b777ffc3f48b55 (diff) |
fixed shell portability issues, thanks Maarten Thibaut, closes COUCHDB-169
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756665 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin')
-rw-r--r-- | bin/couchdb.tpl.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index 33761080..cfa7e575 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -140,15 +140,15 @@ check_environment () { exit $SCRIPT_ERROR fi message_prefix="Apache CouchDB needs a regular" - if ! echo 2> /dev/null >> $PID_FILE; then + if `echo 2> /dev/null >> $PID_FILE; echo $?` -gt 0; then echo "$message_prefix PID file: $PID_FILE" >&2 exit $SCRIPT_ERROR fi - if ! echo 2> /dev/null >> $STDOUT_FILE; then + if `echo 2> /dev/null >> $STDOUT_FILE; echo $?` -gt 0; then echo "$message_prefix STDOUT file: $STDOUT_FILE" >&2 exit $SCRIPT_ERROR fi - if ! echo 2> /dev/null >> $STDERR_FILE; then + if `echo 2> /dev/null >> $STDERR_FILE; echo $?` -gt 0; then echo "$message_prefix STDERR file: $STDERR_FILE" >&2 exit $SCRIPT_ERROR fi |