forked from openkylin/dwz
17 lines
219 B
Bash
17 lines
219 B
Bash
|
#!/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
|