diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-09 16:54:42 -0500 |
|---|---|---|
| committer | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 17:44:45 -0500 |
| commit | 09a881150911e44069569fd834f641fcfbd1a623 (patch) | |
| tree | b4598e4463ada0d96b38ec8752ddb04a6284973b /__test__/verify-basic.sh | |
| parent | 649904e8c3b15a6898ea4e82f9a17e06ff616bb8 (diff) | |
fallback to REST API to download repo
Diffstat (limited to '__test__/verify-basic.sh')
| -rwxr-xr-x | __test__/verify-basic.sh | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/__test__/verify-basic.sh b/__test__/verify-basic.sh index b5d09f0..7bf9188 100755 --- a/__test__/verify-basic.sh +++ b/__test__/verify-basic.sh @@ -1,10 +1,24 @@ -#!/bin/bash +#!/bin/sh if [ ! -f "./basic/basic-file.txt" ]; then echo "Expected basic file does not exist" exit 1 fi -# Verify auth token -cd basic -git fetch
\ No newline at end of file +if [ "$1" = "container" ]; then + # Verify no .git folder + if [ -d "./basic/.git" ]; then + echo "Did not expect ./basic/.git folder to exist" + exit 1 + fi +else + # Verify .git folder + if [ ! -d "./basic/.git" ]; then + echo "Expected ./basic/.git folder to exist" + exit 1 + fi + + # Verify auth token + cd basic + git fetch --depth=1 +fi |
