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 44set -euo pipefail
55
66MAKE=${MAKE:- make}
7+ FIND=${FIND:- find}
78
89# Export parameters so they are useable by subshells and make
910export BASE=" $( dirname " $( dirname " $( readlink -f " $0 " ) " ) " ) "
@@ -21,7 +22,7 @@ do_make() { # for convenience/conciseness
2122
2223check_dest () {
2324 # 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 -)
2526}
2627
2728do_make install
5657do_make uninstall-purge
5758
5859# Expect empty
59- if ! [ -z " $( find " ${DESTDIR} " -type f) " ]; then
60+ if ! [ -z " $( $FIND " ${DESTDIR} " -type f) " ]; then
6061 echo " Uninstall failed, following files weren't removed"
61- find " ${DESTDIR} " -type f
62+ $FIND " ${DESTDIR} " -type f
6263 exit 1
6364fi
You can’t perform that action at this time.
0 commit comments