1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-24 20:49:16 +01:00
cache/__tests__/create-cache-files.sh

18 lines
264 B
Bash
Raw Normal View History

2020-02-13 18:38:56 +01:00
#!/bin/sh
# Validate args
prefix="$1"
if [ -z "$prefix" ]; then
echo "Must supply prefix argument"
exit 1
fi
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