diff --git a/rc_shared.sh b/rc_shared.sh index a82c56a..9de44c7 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -89,7 +89,7 @@ function today { date "+%Y%m%d"; } function send-masters { echo -e "`date` - Looping through MASTER & SYNC directories." - ls | grep '\-MASTER\|\-SYNC' | while read dir; do + ls | grep "\-MASTER\|\-SYNC" | while read dir; do echo -e "\n`date` - Found '$dir'..." cd $dir send-master