From ce052a776dc232ba60149ae5a88334415b8edf25 Mon Sep 17 00:00:00 2001 From: Graham Helton Date: Sun, 16 Oct 2022 15:26:05 -0400 Subject: [PATCH] Fixed bugs --- autodeploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autodeploy.sh b/autodeploy.sh index 7acad0f..19aeae0 100755 --- a/autodeploy.sh +++ b/autodeploy.sh @@ -145,9 +145,9 @@ collect_files(){ cd $HOME while read line; do # Copies all files listed in $HOST_CONFIG_PATH/autodeploy_files.conf recursively, verbosely, and forcefully to the staging area. Filters out un-needed lines, and logs them to $hostname_files.log - cp -rvf --parents $line $HOST_CONFIG_PATH | grep "^'" | awk '{print $1}' | sed "s/'//g" | sed 's@'"$HOME"'@$HOME@' 2>/dev/null + cp -rvf --parents $line $HOST_CONFIG_PATH 2> /dev/null | grep "^'" | awk '{print $1}' | sed "s/'//g" | sed 's@'"$HOME"'@$HOME@' 2>/dev/null # Going to need to add sorting somewhere in here because this log will keep growing - echo -e $TICK_MOVE$GREEN" Copied $BLUE$line$GREEN to $BLUE$HOST_CONFIG_PATH"$ENDCOLOR + echo -e $TICK_MOVE$GREEN" Copying $BLUE$line$GREEN to $BLUE$HOST_CONFIG_PATH if file exists"$ENDCOLOR done < $CONFIG_PATH/autodeploy_files.conf | grep -v "^#" cd $CONFIG_PATH