diff --git a/script.sh b/script.sh index c7a4f52..3d00b86 100755 --- a/script.sh +++ b/script.sh @@ -21,7 +21,7 @@ fi while read -r path; do file=$(basename "$path") cp -r "$path" "$parent_path/$backup_folder" -done < <(grep 'path_' "$parent_path"/.env | sed 's/^.*=//') +done < <(grep -v '^#' "$parent_path"/.env | grep 'path_' | sed 's/^.*=//') # Individual commit message, if no parameter is set, use the current timestamp as commit message if [ -n "$1" ]; then