summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/script/mkrelease.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/mkrelease.sh b/source4/script/mkrelease.sh
index bd3314441c..e6b6c2af07 100755
--- a/source4/script/mkrelease.sh
+++ b/source4/script/mkrelease.sh
@@ -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