Skip to content
Snippets Groups Projects
Commit 0c3c2bf7 authored by Pavel Gajdušek's avatar Pavel Gajdušek
Browse files

changes struct, script

parent 18cefc67
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
for file in $@; do for file in $@; do
check=$(cat $file | grep -Eo "\[.*?\]\([^ ]*\)" | grep -v "#" | grep -vE "http|www|ftp|none" | sed 's/\[.*\]//g' | sed 's/[()]//g' | sed 's/\/$/.md/g') check=$(cat $file | grep -Po "\[.*?\]\(.*?\)" | grep -v "#" | grep -vE "http|www|ftp|none" | sed 's/\[.*\]//g' | sed 's/[()]//g' | sed 's/\/$/.md/g')
if [ ! -z "$check" ]; then if [ ! -z "$check" ]; then
# echo "\n+++++ $file +++++\n" # echo "\n+++++ $file +++++\n"
...@@ -24,7 +24,9 @@ else ...@@ -24,7 +24,9 @@ else
echo "\n+++++ $file +++++\n" echo "\n+++++ $file +++++\n"
fi fi
wrong=1 wrong=1
# echo "wrong link in $(readlink -m $pathtocheck)"
echo "wrong link in $pathtocheck" echo "wrong link in $pathtocheck"
fi fi
done done
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment