#!/bin/bash -euE . pbs-plumb-shlib . $(librelib conf.sh) cmd=${0##*/} usage() { echo "Usage: $cmd [-h]" echo 'Uploads commited changes to the PBS tree.' echo '' echo 'Options:' echo ' -h Show this message' } main() { in_array '-h' "$@" && { usage; return 0; } [[ $# = 0 ]] || { usage >&2; return 1; } load_files abslibre check_vars abslibre WORKDIR cd "$WORKDIR/pbs" git push --all } main "$@"