Skip to content

Commit

Permalink
Correct check for allow_unclean_kayobe_config
Browse files Browse the repository at this point in the history
  • Loading branch information
MoteHue committed Oct 23, 2023
1 parent 71b269e commit b568634
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 b568634

Please sign in to comment.