mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
747bddd93a
Bug occured when the hour was single digit, so we now remove preceding 0s
14 lines
175 B
Bash
Executable file
14 lines
175 B
Bash
Executable file
#!/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
|