From 3501e7594d014ada3e7892a952e77821ddda45cb Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Mon, 29 Nov 2021 13:18:15 -0700 Subject: [PATCH] Fix ShellCheck errors Signed-off-by: Ethan Dye --- install.bash | 2 +- update.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.bash b/install.bash index 93128d9..60d7efd 100755 --- a/install.bash +++ b/install.bash @@ -18,7 +18,7 @@ if ! dpkg -s 'gcc' 'make' &> /dev/null; then apt-get install --yes gcc make || exit 1 fi -if [[ "$(cat /etc/os-release | grep -o '^ID=.*$' | cut -d'=' -f2)" == "ubuntu" ]] && [[ $(bc -l <<< "$(cat /etc/os-release | grep -o '^VERSION_ID=.*$' | cut -d'=' -f2 | tr -d '"') >= 21.10") -eq 1 ]]; then +if [[ "$(grep -o '^ID=.*$' /etc/os-release | cut -d'=' -f2)" == "ubuntu" ]] && [[ $(bc -l <<< "$(grep -o '^VERSION_ID=.*$' /etc/os-release | cut -d'=' -f2 | tr -d '"') >= 21.10") -eq 1 ]]; then echo "Install zram module package for Ubuntu (linux-modules-extra-raspi)" if ! dpkg -s 'linux-modules-extra-raspi' &> /dev/null; then apt-get install --yes linux-modules-extra-raspi || exit 1 diff --git a/update.bash b/update.bash index 517ada2..4654f81 100755 --- a/update.bash +++ b/update.bash @@ -13,7 +13,7 @@ if ! dpkg -s 'gcc' 'make' &> /dev/null; then echo "Installing needed packages (gcc, make)" apt-get install --yes gcc make || exit 1 fi -if [[ "$(cat /etc/os-release | grep -o '^ID=.*$' | cut -d'=' -f2)" == "ubuntu" ]] && [[ $(bc -l <<< "$(cat /etc/os-release | grep -o "^VERSION_ID=.*$" | cut -d'=' -f2 | tr -d '"') >= 21.10") -eq 1 ]]; then +if [[ "$(grep -o '^ID=.*$' /etc/os-release | cut -d'=' -f2)" == "ubuntu" ]] && [[ $(bc -l <<< "$(grep -o '^VERSION_ID=.*$' /etc/os-release | cut -d'=' -f2 | tr -d '"') >= 21.10") -eq 1 ]]; then echo "Install zram module package for Ubuntu (linux-modules-extra-raspi)" if ! dpkg -s 'linux-modules-extra-raspi' &> /dev/null; then apt-get install --yes linux-modules-extra-raspi || exit 1