Skip to content

Commit

Permalink
assume all files that shoudl be deleted are
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaguilar committed Sep 26, 2023
1 parent f8f9e23 commit 3a982dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controllers/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -o errexit

# Expects all scripts configure ssh in /tmp/.ssh
rm -rf ~/.ssh
rm -rf ~/.ssh || true
ln -s /tmp/.ssh ~/.ssh
# Setup SSH
mkdir -p /tmp/.ssh/
Expand All @@ -14,13 +14,13 @@ fi
out="$TFO_ROOT_PATH"/generations/$TFO_GENERATION
vardir="$out/tfvars"
if [[ "$TFO_CLEANUP_DISK" == "true" ]]; then
rm -rf "$TFO_ROOT_PATH"/generations/*
rm -rf "$TFO_ROOT_PATH"/generations/* || true
fi
mkdir -p "$out"
mkdir -p "$vardir"

if [[ -d "$TFO_MAIN_MODULE" ]]; then
rm -rf "$TFO_MAIN_MODULE"
rm -rf "$TFO_MAIN_MODULE" || true
fi

if [[ ! -s "$TFO_MAIN_MODULE_ADDONS/inline-module.tf" ]]; then
Expand Down

0 comments on commit 3a982dc

Please sign in to comment.