new default for logfile
This commit is contained in:
parent
df3d92a7de
commit
6a386f97e0
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# bash-refine v1.2.2: bash-refine.sh, Felix Lohmeier, 2020-07-31
|
||||
# bash-refine v1.3.0: bash-refine.sh, Felix Lohmeier, 2020-07-31
|
||||
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
|
||||
# license: MIT License https://choosealicense.com/licenses/mit/
|
||||
|
||||
|
@ -16,7 +16,7 @@ else
|
|||
workdir="${REFINE_WORKDIR}"
|
||||
fi
|
||||
if [[ -z "${REFINE_LOGFILE}" ]]; then
|
||||
logfile="${workdir}/${date}.log"
|
||||
logfile="log/${date}.log"
|
||||
else
|
||||
logfile="${REFINE_LOGFILE}"
|
||||
fi
|
||||
|
@ -226,6 +226,6 @@ function init {
|
|||
requirements
|
||||
# set trap, create directories and tee to log file
|
||||
trap 'error "script interrupted!"' HUP INT QUIT TERM
|
||||
mkdir -p "${workdir}"
|
||||
mkdir -p "${workdir}" "$(dirname "${logfile}")"
|
||||
exec &> >(tee -i -a "${logfile}")
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# bash-refine v1.2.2: minimal.sh, Felix Lohmeier, 2020-07-31
|
||||
# bash-refine v1.3.0: minimal.sh, Felix Lohmeier, 2020-07-31
|
||||
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
|
||||
# license: MIT License https://choosealicense.com/licenses/mit/
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# bash-refine v1.2.2: templates.sh, Felix Lohmeier, 2020-07-31
|
||||
# bash-refine v1.3.0: templates.sh, Felix Lohmeier, 2020-07-31
|
||||
# https://gist.github.com/felixlohmeier/d76bd27fbc4b8ab6d683822cdf61f81d
|
||||
# license: MIT License https://choosealicense.com/licenses/mit/
|
||||
|
||||
|
@ -24,7 +24,7 @@ source bash-refine.sh
|
|||
#memory="1400M" # increase to available RAM
|
||||
#date="$(date +%Y%m%d_%H%M%S)"
|
||||
#workdir="output/${date}"
|
||||
#logfile="${workdir}/${date}.log"
|
||||
#logfile="log/${date}.log"
|
||||
#csrf=true # set to false for OpenRefine < 3.3
|
||||
#jq="jq" # path to executable
|
||||
#refine="openrefine/refine" # path to executable
|
||||
|
|
Loading…
Reference in New Issue