diff --git a/terraform_docs.sh b/terraform_docs.sh index fba5730fd..918d5583f 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -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