Add detect-hardlinks.sh script

This commit is contained in:
Fredrik Fornwall 2015-07-08 21:10:10 -04:00
parent d7558b1461
commit 426d37e39f

13
detect-hardlinks.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME/termux
for f in *; do
cd $HOME/termux
if [ -d $f/massage ]; then
cd $f/massage
if [ -n "$(find . -type f -links +1)" ]; then
echo "$f contains hardlink"
fi
fi
done