Merge commit 'dkg/master'
[monkeysphere.git] / src / monkeysphere
index 36b44dd4a457f78a6f39ea901150776c005ae2df..089c06e6e8e59ac2e72e7df9e6613b4a0e53490e 100755 (executable)
@@ -63,7 +63,7 @@ gen_subkey(){
     keyExpire=
 
     # get options
-    TEMP=$(getopt -o l:e: -l length:,expire: -n "$PGRM" -- "$@")
+    TEMP=$(PATH="/usr/local/bin:$PATH" getopt -o l:e: -l length:,expire: -n "$PGRM" -- "$@") || failure "getopt failed!  Does your getopt support GNU-style long options?"
 
     if [ $? != 0 ] ; then
        exit 1