Skip to content

Commit

Permalink
autoflash-7455.sh: update min Ubuntu version check (#77)
Browse files Browse the repository at this point in the history
because if both script synopsis and description say "Only for use on Ubuntu 20.04 (or later) LiveUSB"
that has got to mean that checking for Ubuntu 18.04 or later is not good anymore.

Also the script fails in Ubuntu 18.04, firmware download commands are different, while it works fine in 20.04.

Therefore, update the check
  • Loading branch information
bobafetthotmail authored Apr 12, 2021
1 parent 0140710 commit a662b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoflash-7455.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ if [ "$EUID" -ne 0 ]
exit
fi

if [[ $(lsb_release -r | awk '{print ($2 >= "18.04")}') -eq 0 ]]; then
echo "Please run on Ubuntu 18.04 (Bionic) or later"
if [[ $(lsb_release -r | awk '{print ($2 >= "20.04")}') -eq 0 ]]; then
echo "Please run on Ubuntu 20.04 (Focal Fossa) or later"
lsb_release -a
exit
fi
Expand Down

0 comments on commit a662b55

Please sign in to comment.