Add a few more safety catches to the mkrelease.sh script.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 29 Mar 2008 03:37:09 +0000 (14:37 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 29 Mar 2008 03:37:09 +0000 (14:37 +1100)
Andrew Bartlett
(This used to be commit 96eb3f1691fbc8808e3cb80a45283fb7dff53826)

source4/script/mkrelease.sh

index bd3314441cff42616f1617deb3644e26f0a2cf98..e6b6c2af0774eea34b27003667d62be37a3fa08f 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 TMPDIR=`mktemp -d samba-XXXXX`
-(git archive --format=tar HEAD | (cd $TMPDIR/ ; tar xf -))
+(git archive --format=tar HEAD | (cd $TMPDIR/ && tar xf -))
 
-( cd $TMPDIR/source
+( cd $TMPDIR/source || exit 1
  ./autogen.sh || exit 1
  ./configure || exit 1
  make dist  || exit 1