Skip to content

Commit

Permalink
Merge pull request #232 from tegonal/bugfix/detect-pulled-entry
Browse files Browse the repository at this point in the history
grep with -F to search entry as is to avoid regex patterns
  • Loading branch information
robstoll authored Nov 1, 2024
2 parents 4e27a02 + 6fc6cd9 commit 18b7bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gt-pull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 18b7bf7

Please sign in to comment.