From 3399b0703104b05ef5f44f41125dc4778af78445 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 29 Mar 2026 17:57:34 -0700 Subject: [PATCH] The dashes need escaped even though they are quoted. --- rc_shared.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 521e358..35fbdcd 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -86,7 +86,7 @@ function today { date "+%Y%m%d"; } function send-masters { echo -e "`date` - Looping through MASTER directories.\n" - ls | grep '-MASTER' | while read dir; do + ls | grep '\-MASTER' | while read dir; do echo -e "`date` - Found '$dir'..." cd $dir send-master @@ -97,7 +97,7 @@ function send-masters { function pull-clones { echo -e "`date` - Looping through clone directories.\n" - ls | grep '-clone' | while read dir; do + ls | grep '\-clone' | while read dir; do echo -e "`date` - Found '$dir'..." cd $dir pull-clone