From: Silvio Rhatto Date: Thu, 19 Jan 2012 11:54:36 +0000 (-0200) Subject: Oops X-Git-Tag: 0.1~186 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9af0b6d75efe752b6089a629e5b00fb86a82bdf5;p=hydra.git Oops --- diff --git a/share/hydractl/backup-copy-site b/share/hydractl/backup-copy-site index 3885e76..25dd354 100755 --- a/share/hydractl/backup-copy-site +++ b/share/hydractl/backup-copy-site @@ -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