chiark / gitweb /
Add detect-hardlinks.sh script
[termux-packages] / detect-hardlinks.sh
1 #!/bin/sh
2
3 cd $HOME/termux
4
5 for f in *; do
6         cd $HOME/termux
7         if [ -d $f/massage ]; then
8                 cd $f/massage
9                 if [ -n "$(find . -type f -links +1)" ]; then
10                         echo "$f contains hardlink"
11                 fi
12         fi
13 done