buda-base / asset-manager

Asset Manager and audit tool
The Unlicense
0 stars 0 forks source link

incorrect log directory created #174

Closed jimk-bdrc closed 2 years ago

jimk-bdrc commented 2 years ago

Describe the bug A directory named '${sys:AUDIT_LOG_ROOT} is created during a run of audit tool. It sometimes contains directories.

To Reproduce

  1. Use the 21022-05-11 or 2022-05-12 version of audit-tool in an empty directory
    /dev/tmp/audit-test$ audit-tool -version                  
    Version 1.0Beta_2022_05_12
    /dev/tmp/audit-test$ ls -l
    total 0
  2. Launch audit test with any syntax
    ~/dev/tmp/audit-test$audit-tool -h
    usage: audit-tool [options] { - | PathToWork PathToWork ..... }
    where:
    ...
  3. You will see this directory created after the run
~/dev/tmp/audit-test$ ls -l
total 4
drwxr-xr-x 4 jimk jimk 4096 May 12 16:17 '${sys:AUDIT_LOG_ROOT}'

Expected behavior


~/dev/tmp/audit-test$ audit-tool -h
usage: audit-tool [options] { - | PathToWork PathToWork ..... }
where:
...
$ ls -l                   
total 0

an empty directory

jimk-bdrc commented 2 years ago

Fixed with 3fd3ae