monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.contrib.usher: 5f44c563b349b


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.contrib.usher: 5f44c563b349bbe4838889290ffcaf3fb7508214
Date: Sat, 30 Apr 2011 07:23:06 +0200 (CEST)

revision:            5f44c563b349bbe4838889290ffcaf3fb7508214
date:                2011-04-30T05:20:09
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone.contrib.usher
changelog:
* utils/usherctl.in: Check for empty commands after having parsed for a
  config file...

manifest:
format_version "1"

new_manifest [c011f8cacc840eac08dbef050d6ccf71414fdda2]

old_revision [9eaed7aeb4755329ce051ed277b78c229b6305c1]

patch "utils/usherctl.in"
 from [ccc337a7d26f25eea8f348652681b16fb365fa9a]
   to [cf6734a3e684e0c3e842f74a8474d2f0dac3fd82]
============================================================
--- utils/usherctl.in	ccc337a7d26f25eea8f348652681b16fb365fa9a
+++ utils/usherctl.in	cf6734a3e684e0c3e842f74a8474d2f0dac3fd82
@@ -54,7 +54,7 @@ config_file="@sysconfdir@/usher/usherctl
 
 config_file="@sysconfdir@/usher/usherctl.conf"
 
-if ! TEMP=`POSIXLY_CORRECT=yes getopt c: "$@"` || [ $# -eq 0 ]; then
+if ! TEMP=`POSIXLY_CORRECT=yes getopt c: "$@"`; then
     echo "Usage: usherctl [ -c configfile ] [--] command [options] args..."
     exit 1
 fi
@@ -78,6 +78,11 @@ done
     esac
 done
 
+if [ $# -eq 0 ]; then
+    echo "Usage: usherctl [ -c configfile ] [--] command [options] args..."
+    exit 1
+fi
+
 # The reason for this construction is that if the given config file is just
 # a file name, shell will try to find it along $PATH instead of the current
 # working directory.  Since dirname will at least output a '.', this construct

reply via email to

[Prev in Thread] Current Thread [Next in Thread]