From eefb90d382747c29d7537630ed5ad2c783bb8263 Mon Sep 17 00:00:00 2001 From: Rahul Singhal Date: Sun, 27 Apr 2014 15:50:48 -0700 Subject: SPARK-1651: Delete existing deployment directory Small bug fix to make sure the "spark contents" are copied to the deployment directory correctly. Author: Rahul Singhal Closes #573 from rahulsinghaliitd/SPARK-1651 and squashes the following commits: 402c999 [Rahul Singhal] SPARK-1651: Delete existing deployment directory --- make-distribution.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/make-distribution.sh b/make-distribution.sh index 661d1ff5e5..4ac80efae0 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -178,6 +178,7 @@ fi if [ "$MAKE_TGZ" == "true" ]; then TARDIR_NAME=spark-$VERSION-bin-$NAME TARDIR="$FWDIR/$TARDIR_NAME" + rm -rf "$TARDIR" cp -r "$DISTDIR" "$TARDIR" tar czf "spark-$VERSION-bin-$NAME.tgz" -C "$FWDIR" "$TARDIR_NAME" rm -rf "$TARDIR" -- cgit v1.2.3