There was an error while loading. Please reload this page.
1 parent 8009b48 commit f13898aCopy full SHA for f13898a
Check-ubuntu.sh
@@ -1,12 +1,13 @@
1
#!/usr/bin/env bash
2
os_type="$(lsb_release -si 2>/dev/null)"
3
if [ "$os_type" != "Ubuntu" ] && [ "$os_type" != "Debian" ]; then
4
- echoerr "Only supports Ubuntu/Debian"
+ echoerr "Only supports Ubuntu/Debian."
5
exit 1
6
fi
7
if [ "$os_type" = "Ubuntu" ]; then
8
os_ver="$(lsb_release -sr)"
9
if [ "$os_ver" != "16.04" ] && [ "$os_ver" != "14.04" ] && [ "$os_ver" != "12.04" ]; then
10
- echoerr "Only supports Ubuntu 12.04/14.04/16.04"
+ echoerr "Only supports Ubuntu 12.04/14.04/16.04."
11
12
13
+fi
0 commit comments