Я не вижу никаких проблем с вашим скриптом, у меня он работает, хотя вы всегда должны использовать обозначение в кавычках "${var[@]}"
, а также использовать кавычки вокруг переменных/имен файлов(source "$1"
).
Это хорошо работает:
скриптarray.sh
:
#!/bin/bash
URLs=(
"example"
"something"
"something else"
)
скриптoriginal.sh
:
#!/bin/bash
source "$1"
for URL in "${URLs[@]}"; do
echo "$URL"
done
мне подходит:
$./original.sh array.sh
example
something
something else
Более простое решение для загрузки данных списка без необходимости использования источникаreadarray
:
конфигурация:
example
something
something else
сценарий:
readarray URLs < config
for URL in "${URLs[@]}"; do
echo "$URL"
done
или используяxargs
:
xargs -a config -I{} echo {}
или введите его непосредственно в wget
или aria2c
, если ваша цель — загрузить URL-адреса:
wget -i config
aria2c -i config
Ответ с форума Winehq:FAudio для Debian 10 и Ubuntu 18.04
Проблема возникает из-за отсутствия зависимости libfaudio0
она недоступна ни в репозитории debian 10, ни в репозитории winehq. Вам нужно добавить репозиторий opensuse.
sudo apt install software-properties-common apt-transport-https
sudo add-apt-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10./'
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
sudo apt-key add Release.key
sudo apt update
sudo apt install --install-recommends winehq-stable
Thanks to Cybermax, we have FAudio packages on the OBS for Debian 10 and Ubuntu 18.04. The WineHQ wine-devel and wine-staging packages for those distros are built against them and will require them as a dependency. Beginning with Wine 5.0, the wine-stable packages will also require FAudio.
Note: FAudio for Ubuntu 19.10 and later, and Debian bullseye and later, are provided by those distros. If you are unable to install them from your distro repository, ask for help on your distro's forum.
Because FAudio is not part of the Wine Project, the FAudio packages are not distributed from the download server here, but can be obtained directly from the OBS.
Debian 10: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/
Ubuntu 18.04 and Linux Mint 19.x: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/
Попробуйте использовать aptitude install winehq-stable
вместо apt
. Он может автоматически сортировать конфликтующие пакеты или делать предложения.
Вы можете установить aptitude, запустивapt install aptitude