Browse Source

Temporary files

Bob Mottram 9 years ago
parent
commit
2d0aeffc0f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/zeronetavahi

+ 2
- 2
src/zeronetavahi View File

73
 ZERONET_ID_STR="ZeroNet ID Service"
73
 ZERONET_ID_STR="ZeroNet ID Service"
74
 
74
 
75
 # contains the output of the avahi command
75
 # contains the output of the avahi command
76
-TEMPFILE_BASE=/tmp/tmpzeronetavahibase.txt
77
-TEMPFILE=/tmp/tmpzeronetavahi.txt
76
+TEMPFILE_BASE=$(mktemp /tmp/zeronetavahibase.XXXXXX)
77
+TEMPFILE=$(mktemp /tmp/zeronetavahi.XXXXXX)
78
 
78
 
79
 function ipfs_bootstrap {
79
 function ipfs_bootstrap {
80
 	cat $TEMPFILE_BASE | grep "IPFS\|hostname =\|address =\|port =\|txt =" > $TEMPFILE
80
 	cat $TEMPFILE_BASE | grep "IPFS\|hostname =\|address =\|port =\|txt =" > $TEMPFILE