From 7fba668be61c89f133d821c2e7b46630c346fb43 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 2 Mar 2024 05:23:53 +0200 Subject: Fixed tests --- bin/ak2html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/ak2html') diff --git a/bin/ak2html b/bin/ak2html index 0bcadf1..d8aafa6 100755 --- a/bin/ak2html +++ b/bin/ak2html @@ -9,8 +9,8 @@ then fi if [ -n "$1" ] then - test="$(echo -n "$1" | sed 's/Qm[A-Za-z0-9]\{44\}//g')" - if [ -n "$test" ] + TEST="$(echo -n "$1" | grep -v '^Qm[A-Za-z0-9]\{44\}$')" + if [ -n "$TEST" ] then echo not ok exit 1 @@ -21,6 +21,7 @@ arg="tempz" ( \ # Create HTML document +echo "" echo "" echo "" echo " Arching Kaos Chain Data" @@ -29,7 +30,7 @@ echo "" # Iterate through each argument and parse data # for arg in "$@" -if [ -f $arg ] +if [ -f "$arg" ] then #do # Extract data from argument -- cgit v1.2.3