bugfix bei den ersetzungen mit sed

This commit is contained in:
bernd 2021-05-28 18:51:52 +02:00
parent 1b9ebd09e5
commit 5180cb2972

View file

@ -307,6 +307,7 @@ set_value() {
trim_key "$key"
trim_value "$value"
print_info "Set $key to $value"
case $KEY_BUFFER in
kunde) KUNDE="$VALUE_BUFFER";;
adresse) ADRESSE="$VALUE_BUFFER";;
@ -324,7 +325,7 @@ make_invoice() {
dead_days="14"
if [ "$(date +%u)" -gt 5 ]; then
dead_days="16"
dead_days="16"
fi
month_ascii=$(date '+%B')
@ -347,7 +348,7 @@ make_invoice() {
printf "s!#POSITION#!%s!\n" "$POSITION"
printf "s!#BETRAG#!%s!\n" "$BETRAG"
printf "s!#DEADLINE#!%s!\n" "$inv_dead"
} >>$SEDFILE
} >$SEDFILE
cp "$TEMPLATEFILE" "$filename"
$SED_BIN -i -f "$SEDFILE" "$filename"