diff --git a/lib/backends/s3.bash b/lib/backends/s3.bash index cd8cee3..dda6755 100644 --- a/lib/backends/s3.bash +++ b/lib/backends/s3.bash @@ -2,19 +2,19 @@ # Defaults... AWS_ARGS="" -COMPRESS=${BUILDKITE_PLUGIN_CACHE_S3_COMPRESS:-false} +BK_CACHE_COMPRESS=${BUILDKITE_PLUGIN_CACHE_S3_COMPRESS:-false} TAR_ARGS="--ignore-failed-read -cf" TAR_EXTENSION="tar" TAR_EXTRACT_ARGS="-xf" -if [[ ! "${COMPRESS:-false}" =~ (false) ]]; then +if [[ ! "${BK_CACHE_COMPRESS:-false}" =~ (false) ]]; then TAR_ARGS="--ignore-failed-read -zcf" TAR_EXTENSION="tar.gz" TAR_EXTRACT_ARGS="-xzf" fi if [[ "$OSTYPE" == "darwin"* ]]; then - if [[ ! "${COMPRESS:-false}" =~ (false) ]]; then + if [[ ! "${BK_CACHE_COMPRESS:-false}" =~ (false) ]]; then TAR_ARGS="-zcf" else TAR_ARGS="-cf" diff --git a/lib/backends/tarball.bash b/lib/backends/tarball.bash index 5eaed66..7d6a4ac 100644 --- a/lib/backends/tarball.bash +++ b/lib/backends/tarball.bash @@ -1,19 +1,19 @@ #!/bin/bash # Defaults... -COMPRESS=${BUILDKITE_PLUGIN_CACHE_TARBALL_COMPRESS:-false} +BK_CACHE_COMPRESS=${BUILDKITE_PLUGIN_CACHE_TARBALL_COMPRESS:-false} TAR_ARGS="--ignore-failed-read -cf" TAR_EXTENSION="tar" TAR_EXTRACT_ARGS="-xf" -if [[ ! "${COMPRESS:-false}" =~ (false) ]]; then +if [[ ! "${BK_CACHE_COMPRESS:-false}" =~ (false) ]]; then TAR_ARGS="--ignore-failed-read -zcf" TAR_EXTENSION="tar.gz" TAR_EXTRACT_ARGS="-xzf" fi if [[ "$OSTYPE" == "darwin"* ]]; then - if [[ ! "${COMPRESS:-false}" =~ (false) ]]; then + if [[ ! "${BK_CACHE_COMPRESS:-false}" =~ (false) ]]; then TAR_ARGS="-zcf" else TAR_ARGS="-cf"