From 83c39e78867810b4b64028582d0afdd5d758df59 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 25 May 2020 10:11:46 +0200 Subject: [PATCH] Add 'Netcup' folder. Fix error concerning bank statements. --- create_monthly_cash_flow.sh | 7 ++++--- make_dir_ausgaben.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/create_monthly_cash_flow.sh b/create_monthly_cash_flow.sh index 3a593a0..34e3b04 100755 --- a/create_monthly_cash_flow.sh +++ b/create_monthly_cash_flow.sh @@ -310,10 +310,10 @@ else fi found_bank_transaction=false -echononl "Copy '${src_dir_bank_statement}/Umsatz-${month}-${year_short}.pdf' \n to directory '$dir_cash_flow'.." -if [[ -f "${src_dir_bank_statement}/Umsatz-${month}-${year_short}.pdf" ]]; then +echononl "Copy '${src_dir_bank_statement}/Umsatz-${year}-${month}.pdf' \n to directory '$dir_cash_flow'.." +if [[ -f "${src_dir_bank_statement}/Umsatz-${year}-${month}.pdf" ]]; then found_bank_transaction=true - cp -a "${src_dir_bank_statement}/Umsatz-${month}-${year_short}.pdf" "$dir_cash_flow/" > $logfile 2>&1 + cp -a "${src_dir_bank_statement}/Umsatz-${year}-${month}.pdf" "$dir_cash_flow/" > $logfile 2>&1 if [[ $? -eq 0 ]]; then echo_ok else @@ -369,6 +369,7 @@ while IFS='' read -r -d '' file || [[ -n $file ]] ; do fi done < <(find "$base_dir_cash_flow" -mindepth 1 -maxdepth 1 -type f -name "ServiceVertraege_${year}_Stand-${_year}-${_month}-*.xlsx" -print0) +echo -e "\n\tServiceVertraege_${year}_Stand-${_year}-${_month}-*.xlsx\n" diff --git a/make_dir_ausgaben.sh b/make_dir_ausgaben.sh index 099d7cd..47c5b3e 100755 --- a/make_dir_ausgaben.sh +++ b/make_dir_ausgaben.sh @@ -8,7 +8,7 @@ logfile=$(mktemp) base_dir=/home/chris/O.OPEN/Büro/Ausgaben -dirs="Bülos Hetzner InternetX Sinma Sonstige Telekom" +dirs="Hetzner InternetX Netcup STB-Telgmann Sinma Sonstige Telekom" dirs_telekom="Festnetz MobileData MobileFon"