chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7558b1
)
Add detect-hardlinks.sh script
author
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 9 Jul 2015 01:10:10 +0000
(21:10 -0400)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 9 Jul 2015 01:10:10 +0000
(21:10 -0400)
detect-hardlinks.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/detect-hardlinks.sh
b/detect-hardlinks.sh
new file mode 100755
(executable)
index 0000000..
fc4a0ee
--- /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