Skip to content

Commit 6b06683

Browse files
brainsikantonbabenko
authored andcommitted
Fixes use of md5 for tempfile name (antonbabenko#16)
1 parent 091f8b1 commit 6b06683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

terraform_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for file_with_path in "$@"; do
1818
let "index+=1"
1919
done
2020

21-
readonly tmp_file="tmp_$(date | md5).txt"
21+
readonly tmp_file=$(mktemp)
2222
readonly text_file="README.md"
2323

2424
for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do

0 commit comments

Comments
 (0)