fewer output lines
[infrastructure.git] / scripts / crontabs.sh
index 585b7dd..1c1ba29 100755 (executable)
@@ -30,7 +30,7 @@
 # the config file can optionnally get passed as an argument
 
 COMMAND=$(basename $0)
-REV=$(echo '$Revision: 437 $' | sed -e 's,\$,,g')
+REV=$(echo '$Revision$' | sed -e 's,\$,,g')
 
 DEF_CONFIG="$HOME/.$(basename ${COMMAND} .sh)rc"
 
@@ -204,6 +204,7 @@ main () {
     CONFIG=$1; shift
   else
     CONFIG=$DEF_CONFIG
+    [ -f $CONFIG ] || echo localhost > $CONFIG
   fi
 
   parse_config $CONFIG