summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/backup-copy-site2
1 files changed, 1 insertions, 1 deletions
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