Skip to content

Commit

Permalink
Add path argument to create-cache-files.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hadka authored and GitHub committed Apr 8, 2020
1 parent 4a72470 commit 64f8769
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions __tests__/create-cache-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ if [ -z "$prefix" ]; then
exit 1
fi

mkdir test-cache
echo "$prefix $GITHUB_RUN_ID" > test-cache/test-file.txt
path="$2"
if [ -z "$path" ]; then
echo "Must supply path argument"
exit 1
fi

mkdir -p $path
echo "$prefix $GITHUB_RUN_ID" > $path/test-file.txt

0 comments on commit 64f8769

Please sign in to comment.