diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:23:53 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:23:53 +0200 |
commit | 7fba668be61c89f133d821c2e7b46630c346fb43 (patch) | |
tree | 58709d34a03db86a419bf7d8ea662444e60b94c2 | |
parent | 70495ffed262f268e2b8dc90617164b175341a78 (diff) | |
download | arching-kaos-tools-7fba668be61c89f133d821c2e7b46630c346fb43.tar.gz arching-kaos-tools-7fba668be61c89f133d821c2e7b46630c346fb43.tar.bz2 arching-kaos-tools-7fba668be61c89f133d821c2e7b46630c346fb43.zip |
Fixed tests
-rwxr-xr-x | bin/ak2html | 7 |
1 files changed, 4 insertions, 3 deletions
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 "<!DOCTYPE html>" echo "<html>" echo "<head>" echo " <title>Arching Kaos Chain Data</title>" @@ -29,7 +30,7 @@ echo "<body>" # Iterate through each argument and parse data # for arg in "$@" -if [ -f $arg ] +if [ -f "$arg" ] then #do # Extract data from argument |