From 2e15d1d7124eb0bc539f664cbdd0ac2b4c7c622e Mon Sep 17 00:00:00 2001 From: tqwNet Nodelist/Infopack Robot Date: Fri, 1 Mar 2024 23:53:39 +0000 Subject: [PATCH] fix compile_nodelist.sh --- compile_nodelist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile_nodelist.sh b/compile_nodelist.sh index ccadbad..3852137 100755 --- a/compile_nodelist.sh +++ b/compile_nodelist.sh @@ -33,8 +33,8 @@ find zip/ -type f -mtime +120 -exec rm {} \; echo "Compiling nodelist..." makenl -d nodelist.txt >/dev/null -absfile=$(ls -rt outfile/tqwnet.[0-9]*|tail -1) -parfile=$(ls -rt outfile/tqwnet.d*|tail -1) +absfile=$(ls -rt outfile/tqwnet.[0-9]* 2>/dev/null|tail -1) +parfile=$(ls -rt outfile/tqwnet.d* 2>/dev/null|tail -1) file=$(echo $(basename $absfile)) ext=$(echo $file | awk -F. '{ print $2 }') newext="z${ext:1:2}"