Skip to content

Commit

Permalink
let's try not to introduce bugs of our own ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel MORO committed Oct 11, 2024
1 parent 39e553c commit 8de55f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/commands/helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ _trap_hook() {
_idx=1
while test "$_idx" -lt "$_max"; do
f="$(awk "BEGIN{FS=\"\x00\"}{print \$$_idx}" "${decrypted_file_list}")"
_idx="$(expr "$_idx" + 1)"
rm "$f" || continue
if [ "${QUIET}" = "false" ]; then
printf "[helm-secrets] Removed: %s\n" "$f"
fi
# shellcheck won't like that one ...
# but can we _idx=$((_idx+1)) here / what would other tests say?
# ... I'm already banking a lot on awk ... maybe next try ...
_idx="$(expr "$_idx" + 1)"
done >&2

rm "${decrypted_file_list}"
Expand Down

0 comments on commit 8de55f4

Please sign in to comment.