Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Aug 20, 2024
1 parent 8e99fa4 commit 2cf6657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maps-tools-testing
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#needs to increment on every change!!!
#version: 35
#version: 36

#initialize variables
readonly DEFAULT_DOCKER_IMAGE_REGISTRY="ghcr.io/spring-media"
Expand Down Expand Up @@ -242,6 +242,8 @@ function cleanup_configs() {
{ echo "safe old ${HOME}/.aws/credentials to ${HOME}/.aws/credentials-$(date +%Y%m%d%H%M%S)"; mv -f ${HOME}/.aws/credentials ${HOME}/.aws/credentials-$(date +%Y%m%d%H%M%S); }
[[ -s "${HOME}/.aws/awsctx" ]] && \
{ echo "safe old ${HOME}/.aws/awsctx to ${HOME}/.aws/awsctx-$(date +%Y%m%d%H%M%S)"; mv -f ${HOME}/.aws/awsctx ${HOME}/.aws/awsctx-$(date +%Y%m%d%H%M%S); }
[[ -s "${HOME}/.kube/config" ]] && \
{ echo "safe old ${HOME}/.kube/config to ${HOME}/.kube/config-$(date +%Y%m%d%H%M%S)"; mv -f ${HOME}/.kube/config ${HOME}/.kube/config-$(date +%Y%m%d%H%M%S); }
for i in ${HOME}/.kube/*config-*; do
[[ -s "${i}" ]] && \
{ echo "safe old ${i} to ${i%/*}/backup-${i#*/*config-}-$(date +%Y%m%d%H%M%S)"; mv -f ${i} ${i%/*}/backup-${i#*/*config-}-$(date +%Y%m%d%H%M%S); }
Expand Down

0 comments on commit 2cf6657

Please sign in to comment.