Skip to content

Commit

Permalink
test data
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler committed Oct 11, 2023
1 parent fb7614e commit d754575
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ set -eou pipefail

declare _work_d='/srv/rsaccounting/work'
declare _rclone_remote='rsaccounting'
declare _run_log='/srv/rsaccounting/work/monthly.log'
declare _run_log='/srv/rsaccounting/work/00_rsaccounting_log.txt'
export XDG_CONFIG_HOME='/srv/rsaccounting'

eval "declare -A _google_drive_id=( $(rclone backend drives $_rclone_device: | jq -r '.[] | "[\(.name)]=\(.id)"') )"
declare _google_shared_drive_id=${_google_shared_drive_id[Accounting]}
eval "declare -A _google_drive_map=( $(rclone backend drives $_rclone_remote: | jq -r '.[] | "[\(.name)]=\(.id)"') )"
declare _google_drive_id=${_google_drive_map[Accounting]}

# Filled in dynamically (unless test which is static)
declare _run_curr=2021/10
Expand All @@ -26,7 +26,7 @@ run_download() {
run_log "download"
for d in Payroll/"$_run_curr" JSR/{"$_run_curr","$_run_prev"}; do
mkdir -p "$d"
run_rclone sync "$_rclone_device:/$d" "$d"
run_rclone sync "$_rclone_remote:/$d" "$d"
done
(
# Excel on Windows by default creates .CSV files so
Expand Down Expand Up @@ -78,7 +78,7 @@ run_monthly() {
}

run_rclone() {
rclone --drive-team-drive="$_google_shared_drive_id" --checkers=6 --fast-list "$@"
rclone --drive-team-drive="$_google_drive_id" --checkers=6 --fast-list "$@"
}

run_which() {
Expand Down

0 comments on commit d754575

Please sign in to comment.