Verified Commit 6db50933 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

db-remove: db-update: apply required quoting from shellcheck

parent c87e6ad3
Pipeline #13199 passed with stage
in 9 minutes and 22 seconds
......@@ -33,7 +33,7 @@ remove_pkgs=()
for pkgbase in "${pkgbases[@]}"; do
msg "Removing %s from [%s]..." "$pkgbase" "$repo"
if remove_pkgs+=($(source_pkgbuild "${pkgbase}" "repos/${vcsrepo}" && echo ${pkgname[@]})); then
if remove_pkgs+=($(source_pkgbuild "${pkgbase}" "repos/${vcsrepo}" && echo "${pkgname[@]}")); then
vcs_remove_package "${pkgbase}" "${vcsrepo}"
vcs_commit "${0##*/}: $pkgbase removed by $(id -un)"
else
......
......@@ -102,7 +102,7 @@ for repo in "${repos[@]}"; do
add_pkgs+=("${pkgfile}")
done
if (( ${#add_pkgs[@]} >= 1 )); then
arch_repo_modify add "${repo}" "${pkgarch}" ${add_pkgs[@]}
arch_repo_modify add "${repo}" "${pkgarch}" "${add_pkgs[@]}"
fi
done
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment