termux-packages/detect-hardlinks.sh

15 lines
285 B
Bash
Raw Normal View History

2015-07-09 03:10:10 +02:00
#!/bin/sh
cd $HOME/termux
for f in * */subpackages/*; do
2015-07-09 03:10:10 +02:00
cd $HOME/termux
if [ -d $f/massage ]; then
cd $f/massage
if [ -n "$(find . -type f -links +1)" ]; then
echo "$f contains hardlink, which will not work on Android 6 or later:"
find . -type f -links +1
2015-07-09 03:10:10 +02:00
fi
fi
done