testing
This commit is contained in:
parent
affad948cc
commit
bdf2ab7050
1 changed files with 4 additions and 4 deletions
8
test.sh
8
test.sh
|
@ -60,13 +60,13 @@ spin-get-dependencies() {
|
||||||
debian | ubuntu | arch | fedora | alpine | opensuse)
|
debian | ubuntu | arch | fedora | alpine | opensuse)
|
||||||
for pkg in "${pkgArray[@]}"; do
|
for pkg in "${pkgArray[@]}"; do
|
||||||
if ! command_exists $pkg; then
|
if ! command_exists $pkg; then
|
||||||
mapfile -t deplist < <(printf "%s\n" "$pkg")
|
deplist="$deplist $pkg"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
pkglist=()
|
mapfile -t pkglist < <(printf "%s\n" "${deplist[@]}")
|
||||||
|
# pkglist=()
|
||||||
pkglist="${deplist[@]}"
|
# pkglist="${deplist[*]}"
|
||||||
|
|
||||||
check "pkglist: ${pkglist[*]}"
|
check "pkglist: ${pkglist[*]}"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue