Skip to content

Commit a662b55

Browse files
autoflash-7455.sh: update min Ubuntu version check (#77)
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
1 parent 0140710 commit a662b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoflash-7455.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ if [ "$EUID" -ne 0 ]
4040
exit
4141
fi
4242

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

0 commit comments

Comments
 (0)