Compare commits

...

2 Commits

Author SHA1 Message Date
d72df66e99 artixpkg: rename to AGENT=()
OPTIONS  is already used by makepkg.conf
2023-08-15 18:36:19 +02:00
221cc796c0 artixpkg: fix --agent opts (#93)
Reviewed-on: artix/artools#93
Co-authored-by: Artoo <artoo@artixlinux.org>
Co-committed-by: Artoo <artoo@artixlinux.org>
2023-08-03 19:35:52 +02:00
2 changed files with 5 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ artixpkg_git_clone() {
shift 2 shift 2
;; ;;
--agent=*) --agent=*)
CONFIGURE_OPTIONS+=("${1#*=}") CONFIGURE_OPTIONS+=("${1}")
shift shift
;; ;;
--all) --all)

View File

@@ -35,7 +35,7 @@ artixpkg_git_create() {
local clone=0 local clone=0
local config=0 local config=0
local TEAM="${ARTIX_DB[5]}" local TEAM="${ARTIX_DB[5]}"
local OPTIONS=() local AGENT=()
local TEAMS=( local TEAMS=(
"${ARTIX_DB[2]}" "${ARTIX_DB[2]}"
@@ -108,12 +108,12 @@ artixpkg_git_create() {
msg_success "Successfully created ${pkgbase}" msg_success "Successfully created ${pkgbase}"
fi fi
if [[ ${TEAM} == ${ARTIX_DB[11]} ]]; then if [[ ${TEAM} == ${ARTIX_DB[11]} ]]; then
OPTIONS+=(--agent="${TEAM}") AGENT+=(--agent="${TEAM}")
fi fi
if (( clone )); then if (( clone )); then
artixpkg_git_clone "${OPTIONS[@]}" "${pkgbase}" artixpkg_git_clone "${AGENT[@]}" "${pkgbase}"
elif (( config )); then elif (( config )); then
artixpkg_git_config "${OPTIONS[@]}" artixpkg_git_config "${AGENT[@]}"
fi fi
done done