mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-12-20 17:41:19 +00:00
Add options
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
bf4ff170d7
commit
b45906c39d
1 changed files with 20 additions and 2 deletions
22
run.sh
22
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue