diff --git a/quack.sh b/quack.sh index fa4060ca34dd9072ac798080aa95a9617012bf9e..ea32cc16b67a0c9aba4a0de0a484bf539af196ba 100755 --- a/quack.sh +++ b/quack.sh @@ -265,7 +265,7 @@ function copyFiles () { # http://stackoverflow.com/questions/14434549/how-to-expand-shell-variables-in-a-text-file # Input: template-file function ctemplate() { - TMP="`tempfile`.sh" + TMP="`mktemp`.sh" echo 'cat <<END_OF_TEXT' > $TMP cat "$1" >> $TMP echo 'END_OF_TEXT' >> $TMP