summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdownload_artifact.sh2
-rwxr-xr-xsave_artifact.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/download_artifact.sh b/download_artifact.sh
index 55d6a17..cdf5241 100755
--- a/download_artifact.sh
+++ b/download_artifact.sh
@@ -24,5 +24,5 @@ unxz $path_to_file || rm $path_to_file
if [[ -f "$3" ]];
then
- touch /tmp/cache_hit_$(echo "$3" | md5sum)
+ touch /tmp/cache_hit_$(echo "$3" | md5sum | awk '{ print $1 }')
fi \ No newline at end of file
diff --git a/save_artifact.sh b/save_artifact.sh
index a58d6d2..dd8dc45 100755
--- a/save_artifact.sh
+++ b/save_artifact.sh
@@ -6,7 +6,7 @@ cache_name="$1"
cache_key="$2"
path_to_file_="$3"
-if [[ -f "/tmp/cache_hit_$(echo "$3" | md5sum)" ]];
+if [[ -f "/tmp/cache_hit_$(echo "$3" | md5sum | awk '{ print $1 }')" ]];
then
echo "was cached $1 $2 $(basename $path_to_file_)"
exit 0