diff options
Diffstat (limited to 'save_artifact.sh')
| -rwxr-xr-x | save_artifact.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/save_artifact.sh b/save_artifact.sh index c28fd37..a58d6d2 100755 --- a/save_artifact.sh +++ b/save_artifact.sh @@ -5,6 +5,13 @@ registry_user=mrcyjanek cache_name="$1" cache_key="$2" path_to_file_="$3" + +if [[ -f "/tmp/cache_hit_$(echo "$3" | md5sum)" ]]; +then + echo "was cached $1 $2 $(basename $path_to_file_)" + exit 0 +fi + path_to_file="$3.xz" basename="$(basename $path_to_file)" |
