Skip to content

Commit fa89e61

Browse files
committed
Fix find
1 parent d151d18 commit fa89e61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test-install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
set -euo pipefail
55

66
MAKE=${MAKE:-make}
7+
FIND=${FIND:-find}
78

89
# Export parameters so they are useable by subshells and make
910
export BASE="$(dirname "$(dirname "$(readlink -f "$0")")")"
@@ -21,7 +22,7 @@ do_make() { # for convenience/conciseness
2122

2223
check_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

2728
do_make install
@@ -56,8 +57,8 @@ EOF
5657
do_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
6364
fi

0 commit comments

Comments
 (0)