Skip to content

Commit eefb90d

Browse files
Rahul Singhalpwendell
authored andcommitted
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 <[email protected]> Closes mesos#573 from rahulsinghaliitd/SPARK-1651 and squashes the following commits: 402c999 [Rahul Singhal] SPARK-1651: Delete existing deployment directory
1 parent fe65bee commit eefb90d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

make-distribution.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ fi
178178
if [ "$MAKE_TGZ" == "true" ]; then
179179
TARDIR_NAME=spark-$VERSION-bin-$NAME
180180
TARDIR="$FWDIR/$TARDIR_NAME"
181+
rm -rf "$TARDIR"
181182
cp -r "$DISTDIR" "$TARDIR"
182183
tar czf "spark-$VERSION-bin-$NAME.tgz" -C "$FWDIR" "$TARDIR_NAME"
183184
rm -rf "$TARDIR"

0 commit comments

Comments
 (0)