Skip to content

Commit

Permalink
Fixes use of md5 for tempfile name (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsik authored and antonbabenko committed May 20, 2018
1 parent 091f8b1 commit 6b06683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for file_with_path in "$@"; do
let "index+=1"
done

readonly tmp_file="tmp_$(date | md5).txt"
readonly tmp_file=$(mktemp)
readonly text_file="README.md"

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

0 comments on commit 6b06683

Please sign in to comment.