From 61262523ad89d3c882eb6d5a79d2320da272e484 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Sat, 1 Aug 2020 11:02:23 +0200 Subject: [PATCH] fix logfile variable --- bash-refine.sh | 6 +++--- minimal.sh | 2 +- templates.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bash-refine.sh b/bash-refine.sh index 88384ae..19dbedc 100644 --- a/bash-refine.sh +++ b/bash-refine.sh @@ -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 diff --git a/minimal.sh b/minimal.sh index af5fdbb..8a601d1 100755 --- a/minimal.sh +++ b/minimal.sh @@ -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/ diff --git a/templates.sh b/templates.sh index f95409d..e3040a3 100755 --- a/templates.sh +++ b/templates.sh @@ -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/