From aad38aa99497304c8af6fb5715782bc2cc6ed90f Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 4 Jun 2023 08:42:45 +0000 Subject: [PATCH] no need for cd in WORKDIR, grrr --- uptimeatomic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uptimeatomic b/uptimeatomic index 7688b04..e0a0da6 100755 --- a/uptimeatomic +++ b/uptimeatomic @@ -5,7 +5,7 @@ # export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin CONFIGFILE="uptimeatomic.conf" -WORKDIR=$(dirname -- "$(command -v -- "/home/mischa/uptimeatomic/uptimeatomic")") +WORKDIR=$(dirname -- "$(command -v -- "$0")") usage() { echo "usage: ${0##*/} [-c checksfile] [-i incidentsfile] [-p pastincidentsfile] [-o htmlfile]" 1>&2