Skip to content

Commit

Permalink
Fix ShellCheck hint
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-mu committed Sep 12, 2024
1 parent f0020e3 commit f3f75f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit f3f75f0

Please sign in to comment.