From 1ad0f72687ff6fd9a0a298d7a27d2f156b8eeb69 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 2 Jun 2013 21:57:48 -0600 Subject: fix pbs-download --- pbs-download | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pbs-download b/pbs-download index ffe7177..330e7c5 100755 --- a/pbs-download +++ b/pbs-download @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. libremessages +. pbs-plumb-shlib . $(librelib conf.sh) cmd=${0##*/} @@ -69,16 +69,8 @@ download_git() { } 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_configuration -- cgit v1.1-4-g5e80