install: fix apt package array (quoted string caused single-arg error)
Each apt package must be a separate array element; passing them as one quoted string caused apt-get to fail with "unable to locate package <all names>". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
15f8c1d9f7
commit
2303dd8f78
@ -15,11 +15,11 @@ BIN="$HOME/.local/bin/blitztext"
|
|||||||
echo "==> Checking host tools"
|
echo "==> Checking host tools"
|
||||||
need_pkg=()
|
need_pkg=()
|
||||||
# python3-gi (PyGObject) must come from apt — it can't be pip-installed.
|
# python3-gi (PyGObject) must come from apt — it can't be pip-installed.
|
||||||
python3 -c "import gi" 2>/dev/null || need_pkg+=("python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3-0.1")
|
python3 -c "import gi" 2>/dev/null || need_pkg+=(python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3-0.1)
|
||||||
command -v xdotool >/dev/null || need_pkg+=("xdotool")
|
command -v xdotool >/dev/null || need_pkg+=(xdotool)
|
||||||
command -v notify-send >/dev/null || need_pkg+=("libnotify-bin")
|
command -v notify-send >/dev/null || need_pkg+=(libnotify-bin)
|
||||||
if ! command -v pw-record >/dev/null && ! command -v arecord >/dev/null && ! command -v parecord >/dev/null; then
|
if ! command -v pw-record >/dev/null && ! command -v arecord >/dev/null && ! command -v parecord >/dev/null; then
|
||||||
need_pkg+=("pipewire-bin")
|
need_pkg+=(pipewire-bin)
|
||||||
fi
|
fi
|
||||||
if (( ${#need_pkg[@]} )); then
|
if (( ${#need_pkg[@]} )); then
|
||||||
echo " Missing system packages — installing now (requires sudo):"
|
echo " Missing system packages — installing now (requires sudo):"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user