rdblue commented on code in PR #8659: URL: https://github.com/apache/iceberg/pull/8659#discussion_r1367527441
########## site/.github/bin/deploy_docs.sh: ########## @@ -0,0 +1,57 @@ +#!/bin/bash + +while [[ "$#" -gt 0 ]]; do + case $1 in + -v|--version) ICEBERG_VERSION="$2"; shift ;; + *) echo "Unknown parameter passed: $1"; exit 1 ;; + esac + shift +done + +GIT_BRANCH="docs-${ICEBERG_VERSION}" + +# change to branch +git checkout -b $GIT_BRANCH + +cd .. + +# remove all files and directories minus exceptions +find . \ + -not \( -path . \) \ + -not \( -path .. \) \ + -not \( -path ./.git -prune \) \ + -not \( -path ./.github -prune \) \ + -not \( -path ./docs-new -prune \) \ + ! -name LICENSE \ + ! -name NOTICE \ + -exec rm -rf {} + Review Comment: Does this require `-f`? That's not a good thing to have in scripts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org