This commit is contained in:
ahmadbilalkhalid 2019-09-08 20:50:45 +05:00
parent b18dbe2fa8
commit 8f3a47332f
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
get_distro() {
OS=$(cat /etc/*release | grep ID | head -1 | cut -c 4-)
OS=$(cat /etc/*release | grep "^ID=" | head -1 | cut -c 4-)
echo $OS
}