Add options

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-05-15 15:30:34 +02:00
parent bf4ff170d7
commit b45906c39d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

22
run.sh
View file

@ -1,9 +1,27 @@
#!/usr/local/bin/dumb-init /bin/bash
set -euxo pipefail
set -euo pipefail
SRC=${1:-}
MAKEPKG_OPTS=(-cCs --noconfirm --needed)
REPOADD_OPTS=()
SKIP_VERIFY="${SKIP_VERIFY:-}"
while getopts ":hRs" opt; do
case "${opt}" in
R) # Remove older version of package from repo
REPOADD_OPTS+=(-R)
;;
s) # Skip PGP check for source signatures
SKIP_VERIFY="true"
;;
h | *) # Display help
echo "Usage:"
grep '\s.)\ #' $0
exit 1
;;
esac
done
SRC=${1:-}
# Override WORKDIR
cd /src