forked from artix/artools
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d72df66e99
|
|||
| 221cc796c0 |
@@ -97,7 +97,7 @@ artixpkg_git_clone() {
|
|||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--agent=*)
|
--agent=*)
|
||||||
CONFIGURE_OPTIONS+=("${1#*=}")
|
CONFIGURE_OPTIONS+=("${1}")
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--all)
|
--all)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user