Skip to content

Commit

Permalink
Merge pull request #21 from bhperry/no_crash_if_dir_not_exist
Browse files Browse the repository at this point in the history
Don't crash if given directory doesn't exist
  • Loading branch information
Steffen Bleul authored May 1, 2018
2 parents 8df5743 + 6a65d58 commit 3ad950f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logrotateCreateConf.sh
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ IFS=$SAVEIFS

for d in ${log_dirs}
do
log_files=$(find ${d} -type f $LOGS_FILE_ENDINGS_INSTRUCTION)
log_files=$(find ${d} -type f $LOGS_FILE_ENDINGS_INSTRUCTION) || continue
for f in ${log_files};
do
if [ -f "${f}" ]; then

0 comments on commit 3ad950f

Please sign in to comment.