Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gdestuynder/a0ff2db442df11b9349e7e22dddc8d5c to your computer and use it in GitHub Desktop.
Save gdestuynder/a0ff2db442df11b9349e7e22dddc8d5c to your computer and use it in GitHub Desktop.
diff --git a/simplecrypt.sh b/simplecrypt.sh
index ff3b177..af56d68 100755
--- a/simplecrypt.sh
+++ b/simplecrypt.sh
@@ -72,7 +72,7 @@ function main()
[[ -z "${flatulist}" ]] && {
fatal "Empty fingerprint list, nobody to encrypt to then, that's a problem."
}
- sf=$(mktemp) || {
+ sf=$(mktemp -t crypt.XXX) || {
fatal "Couldn't create temp file"
}
chmod 0600 ${sf} || {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment