diff --git a/install.bash b/install.bash index 21602b1..4bd00aa 100755 --- a/install.bash +++ b/install.bash @@ -40,8 +40,8 @@ fi UBUNTU_VERSION="$(grep -o '^VERSION_ID=.*$' /etc/os-release | cut -d'=' -f2 | tr -d '"')" if [[ $OS == "ubuntu" ]] && [[ $(bc -l <<< "$UBUNTU_VERSION >= 23.10") -eq 1 ]]; then echo "Installing zram module package for Ubuntu (linux-modules)" - if ! dpkg -s linux-modules-$(uname -a | awk '{print $3}') &> /dev/null; then - apt-get install --yes dpkg -s linux-modules-$(uname -a | awk '{print $3}') || exit 1 + if ! dpkg -s "linux-modules-$(uname -a | awk '{print $3}')" &> /dev/null; then + apt-get install --yes "linux-modules-$(uname -a | awk '{print $3}')" || exit 1 fi elif [[ $OS == "ubuntu" ]] && [[ $(bc -l <<< "$UBUNTU_VERSION >= 21.10") -eq 1 ]]; then echo "Installing zram module package for Ubuntu (linux-modules-extra-raspi)"