[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Jan 6 19:42:27 UTC 2011
branch "master" has been updated
via f98e9b454b55a131bd4dd5f7d95750f8ed80fd7d (commit)
from 4cee58dec6008ea8d3ba7018cc617413561da0ba (commit)
Summary of changes:
gitall-asterisk-scf.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f98e9b454b55a131bd4dd5f7d95750f8ed80fd7d
Author: David M. Lee <dlee at digium.com>
Date: Thu Jan 6 13:38:39 2011 -0600
Fix script for Windows.
Windows doesn't have mktemp, so use .gitall.TMP instead.
diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index b17ff58..de52a79 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -28,8 +28,11 @@ EOF
# a temp file for holding the output of git commands for later comparison
last_text_file=$(mktemp .gitall.XXXXXX)
if test $? -ne 0; then
- echo "Failed to create temp file" >&2
- exit 1
+ # if it fails to create the temporary (I'm looking at you, Windows), then
+ # use the name .gitall.TMP. That _should_ be safe.
+ last_text_file=.gitall.TMP
+ rm -f .gitall.TMP
+ touch .gitall.TMP
fi
# on exit, cat the last output and delete the temp file
-----------------------------------------------------------------------
--
asterisk-scf/integration/gitall.git
More information about the asterisk-scf-commits
mailing list