Skip to content

Commit

Permalink
logging loc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 18, 2024
1 parent ee2f3f8 commit c03080d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/jduparr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ main() {

# If DOCKER_ENV is set
if [ -n "$DOCKER_ENV" ]; then
log_dir="${LOG_DIR:-/logs/jduparr}"
log_dir="${LOG_DIR/nohl_bash:-$parent_dir/logs/jduparr}"
else
log_dir="${log_dir:-$parent_dir/logs/jduparr}"
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/nohl_bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ log_file() {
script_path=$(dirname "$0")
parent_dir=$(dirname "$script_path")

# If DOCKER_ENV is set
# If DOCKER_ENV is set to true
if [ -n "$DOCKER_ENV" ]; then
log_dir="${LOG_DIR:-/logs/nohl_bash}"
log_dir="${LOG_DIR/nohl_bash:-$parent_dir/logs/nohl_bash}"
else
log_dir="${log_dir:-$parent_dir/logs/nohl_bash}"
fi
Expand Down

0 comments on commit c03080d

Please sign in to comment.