diff --git a/test/test.sh b/test/test.sh index 4b0df41..6656a82 100755 --- a/test/test.sh +++ b/test/test.sh @@ -237,11 +237,11 @@ run_exclude_patterns_test() { echo "Total files: $(find /tmp/exclude-extracted/test2 -type f | wc -l)" # Check that the excluded directories don't exist in the extracted archive - EXCLUDED_DIRS=$(find /tmp/exclude-extracted/test2 -path "*/temp" -o -path "*/bin" | wc -l) + EXCLUDED_DIRS=$(find /tmp/exclude-extracted/test2 -path "*/temp/*" -o -path "*/bin/*" | wc -l) if [ "$EXCLUDED_DIRS" -eq 0 ]; then - echo "SUCCESS: No temp/ or bin/ directories found in the extracted archive" + echo "SUCCESS: No contents of temp/ or bin/ directories found in the extracted archive" else - echo "ERROR: Found excluded directories in the extracted archive" + echo "ERROR: Found contents of excluded directories in the extracted archive" return 1 fi