aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/sendemail-validate
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2024-05-29 09:18:56 -0500
committerRobin Jarry <robin@jarry.cc>2024-05-29 22:37:17 +0200
commit3e40b2384b0a808f54f7331328ee84cbaee3de98 (patch)
tree805aa61b32e981a3871ffb79b0465be7e469a19d /contrib/sendemail-validate
parent5908fd0725034f028ae4aeaa6266ed7c302f3ac2 (diff)
downloadaerc-3e40b2384b0a808f54f7331328ee84cbaee3de98.tar.gz
sendemail-validate: put prefix directly after -t flag
On macOS the -t option must immediately precede the prefix template or else the generated temp name includes a newline (!), which causes the rest of the sendemail-validate script to fail. Signed-off-by: Gregory Anders <greg@gpanders.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'contrib/sendemail-validate')
-rwxr-xr-xcontrib/sendemail-validate2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate
index efcce648..86b06538 100755
--- a/contrib/sendemail-validate
+++ b/contrib/sendemail-validate
@@ -50,7 +50,7 @@ if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
then
remote=$(git config --default origin --get sendemail.validateRemote) &&
ref=$(git config --default master --get sendemail.validateRemoteRef) &&
- worktree=$(mktemp -t -d sendemail-validate.XXXXXXX) &&
+ worktree=$(mktemp -d -t sendemail-validate.XXXXXXX) &&
git worktree add -fd --checkout "$worktree" "refs/remotes/$remote/$ref" &&
git config --replace-all sendemail.validateWorktree "$worktree"
else