Skip to content
Closed
Prev Previous commit
Next Next commit
Let lftp do glob expansion.
  • Loading branch information
JoshRosen committed Feb 25, 2016
commit 9ef45610c64cd0abc61a3115408b6b4238bf7a0e
8 changes: 4 additions & 4 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ if [[ "$1" == "package" ]]; then
echo "Copying release tarballs to $dest_dir"
# Put to new directory:
LFTP mkdir -p $dest_dir
LFTP mput -O $dest_dir spark-*
LFTP mput -O $dest_dir 'spark-*'
# Delete /latest directory and rename new upload to /latest
LFTP "rm -r -f $REMOTE_PARENT_DIR/latest && exit 0"
LFTP mv $dest_dir "$REMOTE_PARENT_DIR/latest"
# Re-upload a second time and leave the files in the timestamped upload directory:
LFTP mkdir -p $dest_dir
LFTP mput -O $dest_dir spark-*
LFTP mput -O $dest_dir 'spark-*'
exit 0
fi

Expand All @@ -222,13 +222,13 @@ if [[ "$1" == "docs" ]]; then
echo "Copying release documentation to $dest_dir"
# Put to new directory:
LFTP mkdir -p $dest_dir
LFTP mput -O $dest_dir _site/*
LFTP mput -O $dest_dir '_site/*'
# Delete /latest directory and rename new upload to /latest
LFTP "rm -r -f $REMOTE_PARENT_DIR/latest && exit 0"
LFTP mv $dest_dir "$REMOTE_PARENT_DIR/latest"
# Re-upload a second time and leave the files in the timestamped upload directory:
LFTP mkdir -p $dest_dir
LFTP mput -O $dest_dir _site/*
LFTP mput -O $dest_dir '_site/*'
cd ..
exit 0
fi
Expand Down