diff --git a/rechnung.sh b/rechnung.sh index 9e2d830..4b39dad 100755 --- a/rechnung.sh +++ b/rechnung.sh @@ -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"