termux-packages/detect-hardlinks.sh
2015-07-08 21:10:10 -04:00

14 lines
204 B
Bash
Executable File

#!/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