blob: a9a30207d5163d5610f33ea9eb782e6827f40f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|