check for absolute path
This commit is contained in:
parent
56735d8e84
commit
d3419affdb
|
@ -9,7 +9,7 @@ escapeReplace() {
|
||||||
export -f escapeReplace
|
export -f escapeReplace
|
||||||
searchfile() {
|
searchfile() {
|
||||||
while IFS= read -r -u 3 link; do
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
if [ $(find . -name "$link"".md" 2>/dev/null | wc -l) -gt 0 ]; then
|
if [ $(find . -name "$link"".md" 2>/dev/null | wc -l) -gt 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue