diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:33:23 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-02 05:33:23 +0200 |
commit | fd33f65d2768ed74346f509a4dd53b72c35bee23 (patch) | |
tree | 53a4668b227a982e047aa1b67181f4d656eee0eb | |
parent | 9c69a97ad8cdbdd26a3b68bd896c0a439f0e3e7a (diff) | |
download | arching-kaos-tools-fd33f65d2768ed74346f509a4dd53b72c35bee23.tar.gz arching-kaos-tools-fd33f65d2768ed74346f509a4dd53b72c35bee23.tar.bz2 arching-kaos-tools-fd33f65d2768ed74346f509a4dd53b72c35bee23.zip |
Do the processing in a temp dir
-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 |