From 4b5838d4ae7335bea14a3a71e8a035ae8abb524c Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 1 Oct 2025 09:43:41 +0300 Subject: [PATCH] install: stop being lazy with existence of apt --- install | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install b/install index 6fab848b..7cee750a 100755 --- a/install +++ b/install @@ -222,12 +222,14 @@ if [ "$(id -u)" == "0" ]; then cp -v etc/xdg/autostart/easyeffects-service.desktop /etc/xdg/autostart/ fi - # Enables laziness on checking whether or not apt is installed - mkdir -vp /etc/apt/apt.conf.d/ - # Enables progress bar and colours for apt/dpkg, which are helpful at - # times when guesstimating when will things happen - echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar - echo 'APT::Color "1";' > /etc/apt/apt.conf.d/99color + # If apt is installed, enable progress bar and colors + if hash apt-get 2> /dev/null; then + mkdir -vp /etc/apt/apt.conf.d/ + # Enables progress bar and colours for apt/dpkg, which are helpful at + # times when guesstimating when will things happen + 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 # nodejs -> node was traditionally an eternity issue for me