diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-cjdns-scanner | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ak-cjdns-scanner b/bin/ak-cjdns-scanner index ef78d2f..875852d 100755 --- a/bin/ak-cjdns-scanner +++ b/bin/ak-cjdns-scanner @@ -11,6 +11,9 @@ then exit 1 fi +TEMPDIR="$(mktemp -d)" +AK_ZPEERSFILE="$HOME/.arching-kaos/peersFile" +cd $TEMPDIR counter=0 printf '[' > walk.aknet dumpLinks \ @@ -38,3 +41,5 @@ done printf ']' >> walk.aknet mv walk.aknet $AK_ZPEERSFILE + +rm -rf $TEMPDIR |