Skip to content

Commit

Permalink
Fix README.md and update.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
fejta committed Sep 5, 2018
1 parent 34d8fc5 commit 4bbe749
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Merge a PR that changes some `config/foo/org.yaml` and then run the following:
```shell
# Displays what it would do without making changes until you add the confirm flag
bazel run //admin:update -- --github-token ~/path-to-my-token # --confirm
bazel run //admin:update -- --github-token-path ~/path-to-my-token # --confirm
```

This will default to a dry-run mode, displaying what changes it intends to make without actually updating anything on github.
Expand Down
7 changes: 7 additions & 0 deletions admin/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if [[ $# -lt 6 ]]; then
echo "Usage: bazel run //admin:update -- --github-token-path ~/my/github/token # --confirm" >&2
exit 1
fi

set -o errexit
set -o nounset
set -o pipefail
set -o xtrace

pushd "$(dirname "$(realpath "$BASH_SOURCE")")"
bazel test //config:all
popd
peribolos="$1"
shift
echo $@
Expand Down

0 comments on commit 4bbe749

Please sign in to comment.