Skip to content

Commit

Permalink
fix!: remove extra argument from redact_config_dir call
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhodgkiss committed Oct 3, 2024
1 parent 86b2840 commit 96de7d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/config-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ function redact_config_dir {
for item in "${KAYOBE_CONFIG_VAULTED_FILES_PATHS[@]}"; do
# skip if file doesn't exist
if [ -f "$1/src/kayobe-config/$item" ]; then
md5sum "$1/src/kayobe-config/$item" | cut -d " " -f 1 >"$1/src/kayobe-config/$item"
item_hash=$(md5sum "$1/src/kayobe-config/$item")
echo $item_hash | awk '{ print $1;}' > "$1/src/kayobe-config/$item"
fi
done
}
Expand Down Expand Up @@ -290,7 +291,7 @@ function main {
merge "$source_kayobe_config_dir" $1
find_redacted_files "$source_kayobe_config_dir/etc/kayobe"
create_kayobe_environment "$source_environment_path" "$source_kayobe_config_dir"
redact_config_dir "$source_environment_path" "$target_kayobe_config_dir"
redact_config_dir "$source_environment_path"
encrypt_config_dir "$source_environment_path"
generate_config "$source_environment_path" "$source_dir"
normalise_files_in_folder "$source_dir" "source-kayobe-env"
Expand Down

0 comments on commit 96de7d2

Please sign in to comment.