diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:30:14 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:30:14 +0200 |
commit | 9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a (patch) | |
tree | c3b5a9552f7c9009b9c1253f6a3eb9c1adf0b3c1 /bin/ak-cjdns-scanner | |
parent | a94106c216ea22a09f5149d56ece5c16489dc655 (diff) | |
download | arching-kaos-tools-9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a.tar.gz arching-kaos-tools-9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a.tar.bz2 arching-kaos-tools-9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a.zip |
Added check for dumpLinks of cjdns-tools
Diffstat (limited to 'bin/ak-cjdns-scanner')
-rwxr-xr-x | bin/ak-cjdns-scanner | 7 |
1 files changed, 7 insertions, 0 deletions
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 \ |