From 6fc6cd90582b768b1a852dd3287e6b21b6d42f9b Mon Sep 17 00:00:00 2001 From: Robert Stoll <robert.stoll@tegonal.com> Date: Fri, 1 Nov 2024 10:08:52 +0100 Subject: [PATCH] grep with -F to search entry as is to avoid regex patterns --- src/gt-pull.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gt-pull.sh b/src/gt-pull.sh index fb1c3b2..bb2cbb3 100755 --- a/src/gt-pull.sh +++ b/src/gt-pull.sh @@ -401,7 +401,7 @@ function gt_pull() { printf "Won't pull the file, remove the entry from %s and \`gt pull\` if you want to pull it nonetheless\n" "$pulledTsv" rm "$source" return - elif ! grep -x "$entry" "$pulledTsv" >/dev/null; then + elif ! grep -x -F "$entry" "$pulledTsv" >/dev/null; then local currentLocation newLocation currentLocation=$(realpath --relative-to="$currentDir" "$workingDirAbsolute/$entryRelativePath" || echo "$workingDirAbsolute/$entryRelativePath") newLocation=$(realpath --relative-to="$currentDir" "$pullDir/$targetFile" || echo "$pullDir/$targetFile")