From 0705e50c905c6801b827aafa5d9abebeba0774f0 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Mon, 15 Apr 2024 17:36:33 +0200 Subject: [PATCH] [tracking] try to find the tle-backup directory --- tracking/update-tracking | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracking/update-tracking b/tracking/update-tracking index 40410cf..48229c2 100755 --- a/tracking/update-tracking +++ b/tracking/update-tracking @@ -4,6 +4,8 @@ DATE=`date -Iseconds` files="iridium-NEXT.txt" [ ! -z "$1" ] && files="$file iridium.txt tle-new.txt" +[ ! -z $(dirname $0) ] && cd $(dirname $0) + for f in $files ; do if [ -f $f ] ; then mv $f $f.old