cleanup - create-vm.sh moves to build
[infrastructure.git] / scripts / crontabs.sh
index 585b7dd..3f9ebf9 100755 (executable)
@@ -30,7 +30,6 @@
 # the config file can optionnally get passed as an argument
 
 COMMAND=$(basename $0)
-REV=$(echo '$Revision: 437 $' | sed -e 's,\$,,g')
 
 DEF_CONFIG="$HOME/.$(basename ${COMMAND} .sh)rc"
 
@@ -196,7 +195,7 @@ main () {
   done
 
   if [ -n "$OPT_VERSION" ] ; then
-    echo "This is $COMMAND, $REV"
+    echo "This is $COMMAND"
     exit 0
   fi
 
@@ -204,6 +203,7 @@ main () {
     CONFIG=$1; shift
   else
     CONFIG=$DEF_CONFIG
+    [ -f $CONFIG ] || echo localhost > $CONFIG
   fi
 
   parse_config $CONFIG