Skip to content

Commit

Permalink
Fixed bug in tools/rptctl in which RPTVERBOSE or RPTDAEMONIZE set to …
Browse files Browse the repository at this point in the history
…0 would be considered 'true' and hence turn those options on.
  • Loading branch information
jayallen committed Dec 24, 2009
1 parent e9df944 commit fd31dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/rptctl
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@ parse_options() {

# Aliases
[ $TEST ] && RPTVERBOSE=1
VERBOSE=$RPTVERBOSE
[ $RPTVERBOSE == 1 ] && VERBOSE=1

[ "$MT_HOME" ] || usage "MT home directory not specified"
[ -d "$MT_HOME" ] || usage "$MT_HOME not found or is not a directory"
[ -e "$MT_HOME/$RPT" ] || usage "$MT_HOME/$RPT not found"
[[ "${RPTLOG:=/dev/null}" =~ ^/ ]] || RPTLOG="$MT_HOME/$RPTLOG"

if [ "$RPTDAEMONIZE" ]; then
if [ $RPTDAEMONIZE == 1 ]; then
RPTARGS="$RPTARGS --load $RPTLOAD --daemon"
fi

Expand Down

0 comments on commit fd31dc1

Please sign in to comment.