summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:58:25 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:58:25 -0600
commit48b5d4a35833c3cd528576e085598c72227b1624 (patch)
tree2e67f6f3eea3ee0bf792bb6bb8a22dc0bc6bb0c2
parent1ad0f72687ff6fd9a0a298d7a27d2f156b8eeb69 (diff)
fix pbs-upload
-rwxr-xr-xpbs-upload17
1 files changed, 4 insertions, 13 deletions
diff --git a/pbs-upload b/pbs-upload
index f682b8d..9cc3064 100755
--- a/pbs-upload
+++ b/pbs-upload
@@ -1,29 +1,20 @@
#!/bin/bash -euE
+. pbs-plumb-shlib
. $(librelib conf.sh)
cmd=${0##*/}
usage() {
echo "Usage: $cmd [-h]"
- echo 'Commits to a package (run from the package directory).'
- echo ''
- echo 'Downloads or updates the PBS tree.'
+ echo 'Uploads commited changes to the PBS tree.'
echo ''
echo 'Options:'
echo ' -h Show this message'
}
main() {
- while getopts 'h' arg; do
- case $arg in
- h) usage; return 0;;
- *) usage >&2; return 1;;
- esac
- done
- if [[ $# -gt 0 ]]; then
- usage >&2
- return 1
- fi
+ in_array '-h' "$@" && { usage; return 0; }
+ [[ $# = 0 ]] || { usage >&2; return 1; }
load_files abslibre
check_vars abslibre WORKDIR