]> gitweb.fluxo.info Git - hydra.git/commitdiff
Oops
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jan 2012 11:54:36 +0000 (09:54 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jan 2012 11:54:36 +0000 (09:54 -0200)
share/hydractl/backup-copy-site

index 3885e76c4f64a791d55cb85cdf8b64131f1e9a42..25dd354179bbf0362a8b94e00ce1820530f47e72 100755 (executable)
@@ -40,7 +40,7 @@ if [ ! -d "$ORIG/$DATE" ]; then
 fi
 
 # Parse server name and port.
-if echo $DEST | grep -v ":"; then
+if echo $DEST | grep -q ":"; then
   SERVER="`echo $DEST | cut -d : -f 1`"
   PORT="`echo $DEST | cut -d : -f 2`"
 else