There was an error while loading. Please reload this page.
2 parents 50d9b77 + ffd1d12 commit 8009b48Copy full SHA for 8009b48
Check-ubuntu.sh
@@ -0,0 +1,12 @@
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"
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"
11
12
+ fi
0 commit comments