Skip to content

Commit

Permalink
Merge pull request #43 from stackhpc/correct-unclean-checkout-check
Browse files Browse the repository at this point in the history
Correct check for allow_unclean_kayobe_config
  • Loading branch information
markgoddard committed Oct 23, 2023
2 parents 71b269e + b568634 commit 52b5cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ function create_kayobe_environment {
local allow_unclean_kayobe_config=${KAYOBE_AUTOMATION_ALLOW_UNCLEAN_KAYOBE_CONFIG:-0}
mkdir -p "$env"/{src/kayobe,src/kayobe-config,venvs/kayobe}

if [ "$allow_unclean_kayobe_config" != 0 ]; then
if [ "$allow_unclean_kayobe_config" == 0 ]; then
# Ensure we have an unmodified copy of kayobe-config
if [[ $(realpath "$kayobe_config_source_path") != $(realpath "$env/src/kayobe-config") ]]; then
clean_copy "$kayobe_config_source_path" "$env/src/kayobe-config"
Expand Down

0 comments on commit 52b5cfa

Please sign in to comment.