scripts/check-links

16 linhas
250 B
Fish
Executable File

#!/usr/bin/env fish
while read f l
eval set f $f
eval set l $l
set f (realpath -- "$f")
set l (string trim "$l")
set t (realpath -- "$l")
if test "$f" != "$t"
echo -- "! $l"
echo -- "? $f"
echo -- "= $t"
echo -- "---"
end
end < links