From: Fredrik Fornwall Date: Thu, 9 Jul 2015 01:10:10 +0000 (-0400) Subject: Add detect-hardlinks.sh script X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/426d37e39f50f81a4e413096a8b51bef6b9e88f5?ds=sidebyside Add detect-hardlinks.sh script --- diff --git a/detect-hardlinks.sh b/detect-hardlinks.sh new file mode 100755 index 00000000..fc4a0ee6 --- /dev/null +++ b/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