Unverified Commit 64f87695 authored by David Hadka's avatar David Hadka Committed by GitHub
Browse files

Add path argument to create-cache-files.sh

parent 4a724707
Loading
Loading
Loading
Loading
+8 −2
Changes for __tests__/create-cache-files.sh: 8 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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