Browse Source

Add detect-hardlinks.sh script

android-5
Fredrik Fornwall 10 years ago
parent
commit
426d37e39f
  1. 13
      detect-hardlinks.sh

13
detect-hardlinks.sh

@ -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
Loading…
Cancel
Save