no need for cd in WORKDIR

This commit is contained in:
mischa 2023-06-04 08:40:18 +00:00
parent 58271c5127
commit 30fa915658
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
# #
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
CONFIGFILE="uptimeatomic.conf" CONFIGFILE="uptimeatomic.conf"
WORKDIR=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P) #WORKDIR=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)
WORKDIR=$(dirname -- "$(command -v -- "/home/mischa/uptimeatomic/uptimeatomic")")
usage() { usage() {
echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2 echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2