From 30fa91565832ca0006858c7ca8d89fc43092bc2d Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 4 Jun 2023 08:40:18 +0000 Subject: [PATCH] no need for cd in WORKDIR --- uptimeatomic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uptimeatomic b/uptimeatomic index 8f93940..00f7039 100755 --- a/uptimeatomic +++ b/uptimeatomic @@ -5,7 +5,8 @@ # export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 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() { echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2