mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-16 16:01:22 +02:00
Fix shellcheck errors
This commit is contained in:
parent
7c7ab7c49e
commit
2522d07a5f
2 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@ fi
|
|||
|
||||
# Verify file content
|
||||
content="$(cat $file)"
|
||||
echo "File content:\n$content"
|
||||
if [ -z "$(echo $content | grep --fixed-strings "$prefix $GITHUB_RUN_ID")" ]; then
|
||||
printf "File content:\n%s\n" "$content"
|
||||
if ! echo "$content" | grep --fixed-strings "$prefix $GITHUB_RUN_ID"; then
|
||||
echo "Unexpected file content"
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Reference in a new issue