checkout/__test__/verify-sparse-checkout.sh
Jonne Laagland Winder c20cd695a8
Update __test__/verify-sparse-checkout.sh
Remove test escape hatch

Co-authored-by: Austin Pray <71290498+austinpray-mixpanel@users.noreply.github.com>
2022-10-07 22:41:21 +02:00

21 lines
417 B
Bash
Executable file

#!/bin/bash
if [ ! -f "./sparse-checkout/root.txt" ]; then
echo "Expected file 'root.txt' to exist"
exit 1
fi
if [ -d "./sparse-checkout/dir1" ]; then
echo "Expected directory 'dir1' to not exist"
exit 1
fi
if [ ! -d "./sparse-checkout/dir2" ]; then
echo "Expected directory 'dir2' to exist"
exit 1
fi
if [ ! -d "./sparse-checkout/dir3" ]; then
echo "Expected directory 'dir3' to exist"
exit 1
fi