Skip to content

Commit

Permalink
Fix ShellCheck errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Nov 29, 2021
1 parent b410aca commit 3501e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3501e75

Please sign in to comment.