dwz/testsuite/scripts/hardlinks-p.sh

17 lines
219 B
Bash
Raw Permalink Normal View History

2022-08-25 18:00:22 +08:00
#!/bin/sh
hardlinks=$(find -samefile "$1")
for f in "$@"; do
found=false
for hl in $hardlinks; do
if [ "$hl" = "./$f" ]; then
found=true
break
fi
done
if ! $found; then
exit 1
fi
done