-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebuild.sh
executable file
·31 lines (23 loc) · 1.13 KB
/
rebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -e
# -------------------------------------------------------------------------------------------------------------------- #
# INITIALIZATION.
# -------------------------------------------------------------------------------------------------------------------- #
init() {
# Vars.
COPR_TOKEN="${1}"
PKG_NAME="${2}"
# Apps.
curl="$( command -v curl )"
# Run.
copr_run
}
# -------------------------------------------------------------------------------------------------------------------- #
# COPR: RUN REBUILD.
# -------------------------------------------------------------------------------------------------------------------- #
copr_run() {
${curl} -X POST "https://copr.fedorainfracloud.org/webhooks/custom/${COPR_TOKEN}/${PKG_NAME}/"
}
# -------------------------------------------------------------------------------------------------------------------- #
# -------------------------------------------------< INIT FUNCTIONS >------------------------------------------------- #
# -------------------------------------------------------------------------------------------------------------------- #
init "$@"; exit 0