From 9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 2 Mar 2024 05:30:14 +0200 Subject: Added check for dumpLinks of cjdns-tools --- bin/ak-cjdns-scanner | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/ak-cjdns-scanner') diff --git a/bin/ak-cjdns-scanner b/bin/ak-cjdns-scanner index 749472e..ef78d2f 100755 --- a/bin/ak-cjdns-scanner +++ b/bin/ak-cjdns-scanner @@ -4,6 +4,13 @@ # # Ref: https://github.com/cjdelisle/cjdns # +which dumpLinks > /dev/null 2>&1 +if [ $? -ne 0 ] +then + echo "You need to install cjdns and cjdns-tools" + exit 1 +fi + counter=0 printf '[' > walk.aknet dumpLinks \ -- cgit v1.2.3