mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 20:08:36 +08:00 
			
		
		
		
	Fix shellcheck errors
This commit is contained in:
		
							parent
							
								
									7c7ab7c49e
								
							
						
					
					
						commit
						2522d07a5f
					
				|  | @ -8,4 +8,4 @@ if [ -z "$prefix" ]; then | |||
| fi | ||||
| 
 | ||||
| mkdir test-cache | ||||
| echo "$prefix $GITHUB_RUN_ID" > test-cache/test-file.txt | ||||
| echo "$prefix $GITHUB_RUN_ID" >test-cache/test-file.txt | ||||
|  |  | |||
|  | @ -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…
	
		Reference in New Issue
	
	Block a user
	 BSKY
						BSKY