aboutsummaryrefslogblamecommitdiffstats
path: root/modules/os-release
blob: 165a7c385ddaca5dc70fa0d6f9b6c4701347fe26 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                
#!/bin/bash

# Prints out your OS name

PREFIX=' '

get_os_name()
{
        OS=$(cat /etc/os-release | head -n 1 | sed 's/NAME=//g')

        echo "$PREFIX$OS"
}

get_os_name