From c66c68f1f7ce0c363e159a3a0cdb5c351ec21db5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 29 Mar 2021 09:04:50 +0200 Subject: lastVersion.sh für git.eckner.net vereinheitlicht und optimiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manualPorts/logwatch-extra/lastVersion.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'manualPorts/logwatch-extra') diff --git a/manualPorts/logwatch-extra/lastVersion.sh b/manualPorts/logwatch-extra/lastVersion.sh index 1147c0d..9d13169 100755 --- a/manualPorts/logwatch-extra/lastVersion.sh +++ b/manualPorts/logwatch-extra/lastVersion.sh @@ -1,9 +1,11 @@ #!/bin/bash -curl -Ss "https://git.eckner.net/Erich/$(basename "${0%/*}")/refs/" | \ +name=$(basename "$(readlink -f "${0%/*}")") + +curl -Ss "https://git.eckner.net/Erich/${name}/refs/" | \ tr '<>' '\n' | \ sed -n " - s,^a href='/Erich/$(basename "${0%/*}")/snapshot/$(basename "${0%/*}")-\([0-9.]\+\)\.tar\.xz'$,\1, + s,^a href='/Erich/${name}/snapshot/${name}-\([0-9.]\+\)\.tar\.xz'$,\1, T p " | \ -- cgit v1.2.3-70-g09d2