Use bash arrays for multi-argument commands

This commit is contained in:
Ohad Livne 2025-06-04 22:46:30 +03:00
parent 6e75b5f3b6
commit fcda41787a
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -1,96 +1,93 @@
#! /usr/bin/sh
#! /usr/bin/bash
DEB_PKGS="\
age \
alsa-utils \
audacity \
avahi-daemon \
black \
bluez \
borgbackup \
build-essential \
cargo \
cargo-doc \
curl \
direnv \
docker.io \
emacs-mozc \
exa \
fcitx5-frontend-all \
fcitx5-mozc \
ffmpeg \
firefox-esr \
fuzzel \
gnumeric \
graphviz \
grim \
guile-3.0 \
htop \
imagemagick \
inkscape \
jq \
jupyter-notebook \
keepassxc \
libnss-mdns \
libyajl-doc \
libyajl2 \
magic-wormhole \
make \
markdown \
mpv \
network-manager \
nmap \
ntfs-3g \
pipewire-audio \
pipx \
postfix \
pre-commit \
pulseaudio-utils \
python3-poetry \
python3-pylsp-black \
python3-pylsp-isort \
python3-pylsp-mypy \
python3-pylsp-rope \
python3.12-venv \
qtwayland5 \
reuse \
ripgrep \
rust-doc \
rust-llvm \
shellcheck \
slurp \
software-properties-common \
speedtest-cli \
sway \
sway-backgrounds \
swayidle \
swaylock \
syncthing \
transmission \
udisks2 \
unar \
unrar-free \
unzip \
wev \
wf-recorder \
wl-clipboard \
xdg-desktop-portal-wlr \
xournalpp \
yt-dlp \
zip \
"
META_PKGS="\
fonts-noto \
"
DEB_PKGS=(
age
alsa-utils
audacity
avahi-daemon
black
bluez
borgbackup
build-essential
cargo
cargo-doc
curl
direnv
docker.io
emacs-mozc
exa
fcitx5-frontend-all
fcitx5-mozc
ffmpeg
firefox-esr
fuzzel
gnumeric
graphviz
grim
guile-3.0
htop
imagemagick
inkscape
jq
jupyter-notebook
keepassxc
libnss-mdns
libyajl-doc
libyajl2
magic-wormhole
make
markdown
mpv
network-manager
nmap
ntfs-3g
pipewire-audio
pipx
postfix
pre-commit
pulseaudio-utils
python3-poetry
python3-pylsp-black
python3-pylsp-isort
python3-pylsp-mypy
python3-pylsp-rope
python3.12-venv
qtwayland5
reuse
ripgrep
rust-doc
rust-llvm
shellcheck
slurp
software-properties-common
speedtest-cli
sway
sway-backgrounds
swayidle
swaylock
syncthing
transmission
udisks2
unar
unrar-free
unzip
wev
wf-recorder
wl-clipboard
xdg-desktop-portal-wlr
xournalpp
yt-dlp
zip
)
META_PKGS=(
fonts-noto
)
PIPX_PKGS="\
ruff-lsp \
"
PIPX_PKGS=(
ruff-lsp
)
# shellcheck disable=SC2086
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ${DEB_PKGS}
# shellcheck disable=SC2086
sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes ${META_PKGS}
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes "${DEB_PKGS[@]}"
sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes "${META_PKGS[@]}"
# shellcheck disable=SC2086
pipx install ${PIPX_PKGS}
pipx install "${PIPX_PKGS[@]}"