File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4
4
set -euo pipefail
5
5
6
6
MAKE=${MAKE:- make}
7
+ FIND=${FIND:- find}
7
8
8
9
# Export parameters so they are useable by subshells and make
9
10
export BASE=" $( dirname " $( dirname " $( readlink -f " $0 " ) " ) " ) "
@@ -21,7 +22,7 @@ do_make() { # for convenience/conciseness
21
22
22
23
check_dest () {
23
24
# Check file list given on stdin and see if all are actually present
24
- diff -u <( find " ${DESTDIR} " -type f -printf " %P\n" | sort) <( sort -)
25
+ diff -u <( $FIND " ${DESTDIR} " -type f -printf " %P\n" | sort) <( sort -)
25
26
}
26
27
27
28
do_make install
56
57
do_make uninstall-purge
57
58
58
59
# Expect empty
59
- if ! [ -z " $( find " ${DESTDIR} " -type f) " ]; then
60
+ if ! [ -z " $( $FIND " ${DESTDIR} " -type f) " ]; then
60
61
echo " Uninstall failed, following files weren't removed"
61
- find " ${DESTDIR} " -type f
62
+ $FIND " ${DESTDIR} " -type f
62
63
exit 1
63
64
fi
You can’t perform that action at this time.
0 commit comments