fix temp file name generation
This commit is contained in:
parent
0cb4e3d23d
commit
0131eec976
|
|
@ -18,8 +18,7 @@ postgres_repo_file='/etc/apt/sources.list.d/pgdg.list'
|
||||||
|
|
||||||
#append a line to a file only if it does not already exist
|
#append a line to a file only if it does not already exist
|
||||||
#temp file
|
#temp file
|
||||||
random=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64)
|
postgres_repo_tmp=`mktemp -t pgdg-XXXXXXXXXX.lst`
|
||||||
postgres_repo_tmp='/tmp/pgdg-'$random'.lst'
|
|
||||||
rm $postgres_repo_tmp
|
rm $postgres_repo_tmp
|
||||||
|
|
||||||
#append a line
|
#append a line
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue