Skip to content
Closed
Prev Previous commit
Next Next commit
Try using put instead of mput for docs.
  • Loading branch information
JoshRosen committed Feb 26, 2016
commit e448ae64dcf5d25fc4a0651ddf1fcc98039b76f7
4 changes: 2 additions & 2 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 put -O $REMOTE_PARENT_DIR '_site' -o "${DEST_DIR_NAME}-docs"
# 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 put -O $REMOTE_PARENT_DIR '_site' -o "${DEST_DIR_NAME}-docs"
cd ..
exit 0
fi
Expand Down