From ed1d8a013e23f808c58fc322ebf2c5c9c7f70d13 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 26 Jul 2021 17:26:29 -0400 Subject: [PATCH] Update URLs and functions --- README.md | 6 ++++-- aptpkg | 14 +++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7a94d95..c5bc484 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,10 @@ [![This project is considered experimental](https://img.shields.io/badge/Status-experimental-red.svg)](https://www.arp242.net/status/experimental) [![sr.ht Project hub](https://img.shields.io/badge/sr.ht-Project%20hub-grey)](https://sr.ht/~earnestma/aptpkg) -- **[Packaging git repository](https://git.sr.ht/~earnestma/aptpkg-pkgs)** -- **[Package archive setup/ info](https://man.sr.ht/~earnestma/aptpkg)** +- **[aptpkg.earne.link packaging git + repository](https://git.sr.ht/~earnestma/aptpkg-pkgs)** +- **[aptpkg.earne.link Package archive setup/ + info](https://man.sr.ht/~earnestma/aptpkg)** Easily create debian packages. diff --git a/aptpkg b/aptpkg index e074bba..dd82552 100755 --- a/aptpkg +++ b/aptpkg @@ -11,7 +11,7 @@ aptpkg v$APTPKG_VERSION Easily create debian packages. -Full documentation is being worked on and will be available at +Documentation: https://man.sr.ht/~earnestma/aptpkg Usage: aptpkg [directory] @@ -43,6 +43,8 @@ build_deb(){ # Determine which function to run load_build(){ + mkdir -p dist + # shellcheck disable=SC1090 source "$1/build" @@ -53,16 +55,14 @@ load_build(){ } # Run! -mkdir -p dist - -if [ $# -ne 1 ]; then - error_usage_die "You must provide one directory" -fi - case $1 in -h|--help) show_help ;; *) + if [ $# -ne 1 ]; then + error_usage_die "You must provide one directory" + fi + check "$1" load_build "$1" ;; esac