diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..126bc53 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Files +*~ \ No newline at end of file diff --git a/acmlib.sh b/acmlib.sh index 16523e6..92d9efc 100644 --- a/acmlib.sh +++ b/acmlib.sh @@ -295,7 +295,7 @@ check_os_is_centos () { } check_os_is_ubuntu () { - grep -iq '^ID *= *ubuntu' /etc/os-release + [ -s /etc/lsb-release ] && grep -iq '^DISTRIB_ID *= *Ubuntu' /etc/lsb-release } require_supported_os () {