summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:57:48 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:57:48 -0600
commit1ad0f72687ff6fd9a0a298d7a27d2f156b8eeb69 (patch)
tree9d38c38fdcbffa68e55ec30903e963b551c07f60
parent882c842e9feb38b0be3e952e397b3e598053d4ac (diff)
fix pbs-download
-rwxr-xr-xpbs-download14
1 files 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 <http://www.gnu.org/licenses/>.
-. 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