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

Add path argument to verify-cache-files.sh

parent 64f87695
Loading
Loading
Loading
Loading
+7 −1
Changes for __tests__/verify-cache-files.sh: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -7,6 +7,12 @@ if [ -z "$prefix" ]; then
  exit 1
fi

path="$2"
if [ -z "$path" ]; then
  echo "Must specify path argument"
  exit 1
fi

# Sanity check GITHUB_RUN_ID defined
if [ -z "$GITHUB_RUN_ID" ]; then
  echo "GITHUB_RUN_ID not defined"
@@ -14,7 +20,7 @@ if [ -z "$GITHUB_RUN_ID" ]; then
fi

# Verify file exists
file="test-cache/test-file.txt"
file="$path/test-file.txt"
echo "Checking for $file"
if [ ! -e $file ]; then
  echo "File does not exist"