Permalink
Browse files

change temp file-name creation a little bit

  • Loading branch information...
PeterPawn committed Aug 14, 2017
1 parent 21b9749 commit ee84a66b02da83039472d751ab766cc5974c59d5
Showing with 4 additions and 1 deletion.
  1. +4 −1 signimage/check_signed_image
@@ -334,7 +334,10 @@ fi
# #
####################################################################################
tmp=$(mktemp -d)
[ $? -eq 127 ] && tmp="/tmp/tmp.$(date +%s).$$" && mkdir -p "$tmp"
if [ $? -eq 127 ] || [ ${#tmp} -eq 0 ]; then
tmp="/tmp/tmp.$(date +%s).$$"
mkdir -p "$tmp"
fi
trap "rm -r \"$tmp\"" EXIT HUP INT
####################################################################################
# #

0 comments on commit ee84a66

Please sign in to comment.