checkout/__test__/verify-sparse-checkout.sh

22 lines
417 B
Bash
Raw Normal View History

2022-01-31 23:14:53 +00:00
#!/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
2022-02-01 01:14:25 +00:00
fi