Add detect-hardlinks.sh script
This commit is contained in:
parent
d7558b1461
commit
426d37e39f
13
detect-hardlinks.sh
Executable file
13
detect-hardlinks.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user