fix logfile variable

This commit is contained in:
Felix Lohmeier 2020-08-01 11:02:23 +02:00
parent 0bc4e5f6f3
commit 61262523ad
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# bash-refine v1.3.1: bash-refine.sh, Felix Lohmeier, 2020-07-31
# bash-refine v1.3.2: bash-refine.sh, Felix Lohmeier, 2020-08-01
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
# license: MIT License https://choosealicense.com/licenses/mit/
@ -16,8 +16,8 @@ if [[ -n "$(readlink -e "${REFINE_WORKDIR}")" ]]; then
else
workdir="$(readlink -m "${BASH_SOURCE%/*}/output/${date}")"
fi
if [[ -n "$(readlink -e "${REFINE_LOGFILE}")" ]]; then
logfile="$(readlink -e "${REFINE_LOGFILE}")"
if [[ -n "$(readlink -f "${REFINE_LOGFILE}")" ]]; then
logfile="$(readlink -f "${REFINE_LOGFILE}")"
else
logfile="$(readlink -m "${BASH_SOURCE%/*}/log/${date}.log")"
fi

View File

@ -1,5 +1,5 @@
#!/bin/bash
# bash-refine v1.3.1: minimal.sh, Felix Lohmeier, 2020-07-31
# bash-refine v1.3.2: minimal.sh, Felix Lohmeier, 2020-08-01
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
# license: MIT License https://choosealicense.com/licenses/mit/

View File

@ -1,5 +1,5 @@
#!/bin/bash
# bash-refine v1.3.1: templates.sh, Felix Lohmeier, 2020-07-31
# bash-refine v1.3.2: templates.sh, Felix Lohmeier, 2020-08-01
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
# license: MIT License https://choosealicense.com/licenses/mit/