Skip to content
Closed
Prev Previous commit
Next Next commit
&& -> ||
  • Loading branch information
JoshRosen committed Feb 25, 2016
commit 36c34660b38ffce511a695612da7fb2a4953d30d
4 changes: 2 additions & 2 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if [[ "$1" == "package" ]]; then
LFTP mkdir -p $dest_dir
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 "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
Expand All @@ -224,7 +224,7 @@ if [[ "$1" == "docs" ]]; then
LFTP mkdir -p $dest_dir
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 "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
Expand Down