From 64f876951512169eb2fd25ede0708ba40b51f118 Mon Sep 17 00:00:00 2001 From: David Hadka Date: Tue, 7 Apr 2020 23:29:07 -0400 Subject: [PATCH] Add path argument to create-cache-files.sh --- __tests__/create-cache-files.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/__tests__/create-cache-files.sh b/__tests__/create-cache-files.sh index 885a5f2..0ce4140 100755 --- a/__tests__/create-cache-files.sh +++ b/__tests__/create-cache-files.sh @@ -7,5 +7,11 @@ if [ -z "$prefix" ]; then exit 1 fi -mkdir test-cache -echo "$prefix $GITHUB_RUN_ID" > test-cache/test-file.txt \ No newline at end of file +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