install: stop being lazy with existence of apt

This commit is contained in:
Aminda Suomalainen 2025-10-01 09:43:41 +03:00
parent 85ab7d75af
commit 4b5838d4ae
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

14
install
View File

@ -222,12 +222,14 @@ if [ "$(id -u)" == "0" ]; then
cp -v etc/xdg/autostart/easyeffects-service.desktop /etc/xdg/autostart/ cp -v etc/xdg/autostart/easyeffects-service.desktop /etc/xdg/autostart/
fi fi
# Enables laziness on checking whether or not apt is installed # If apt is installed, enable progress bar and colors
mkdir -vp /etc/apt/apt.conf.d/ if hash apt-get 2> /dev/null; then
# Enables progress bar and colours for apt/dpkg, which are helpful at mkdir -vp /etc/apt/apt.conf.d/
# times when guesstimating when will things happen # Enables progress bar and colours for apt/dpkg, which are helpful at
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar # times when guesstimating when will things happen
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color
fi
# Workarounds for Debian binary names # Workarounds for Debian binary names
# nodejs -> node was traditionally an eternity issue for me # nodejs -> node was traditionally an eternity issue for me