check for absolute path

This commit is contained in:
David Holdeman 2021-02-15 22:11:08 -06:00
parent 56735d8e84
commit d3419affdb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ escapeReplace() {
export -f escapeReplace
searchfile() {
while IFS= read -r -u 3 link; do
if echo $link | grep -E '^http' >/dev/null; then
if echo $link | grep -E '^[http|\/]' >/dev/null; then
continue
fi
if [ $(find . -name "$link"".md" 2>/dev/null | wc -l) -gt 0 ]; then