⚡ bash, geany, vim, README.md
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
this="${0##*/}"
|
||||
this_version="2021-01-22"
|
||||
this_version="2025-09-25"
|
||||
USAGE="\
|
||||
$this@v$this_version
|
||||
Wrapper around '/etc/os-release' to show Ubuntu (like) os info.
|
||||
@@ -39,18 +39,18 @@ case "$ID" in
|
||||
;;
|
||||
esac
|
||||
out="${out}\nVERSION_NICK=$UBUNTU_CODENAME"
|
||||
codename=`grep $(lsb_release -rs) /usr/share/python-apt/templates/Ubuntu.info | grep -m 1 "Description: Ubuntu " | cut -d "'" -f2`
|
||||
codename="$(grep "$(lsb_release -rs)" /usr/share/python-apt/templates/Ubuntu.info | grep -m 1 "Description: Ubuntu " | cut -d "'" -f2)"
|
||||
out="${out}\nVERSION_NAME=$codename"
|
||||
# http://www.releases.ubuntu.com/jammy/
|
||||
out="${out}\nLIKE=$ID_LIKE"
|
||||
out="${out}\n`grep URL /etc/os-release | sed 's/^\([A-Z_]*\)_URL/URL_\1/'`"
|
||||
out="${out}\n$(grep URL /etc/os-release | sed 's/^\([A-Z_]*\)_URL/URL_\1/')"
|
||||
|
||||
if [[ "$arg" = "--all" ]]; then
|
||||
echo -e "$out"
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$arg" = "--pick" ]]; then
|
||||
echo -e `echo -e "$out" | grep "\b${2:-DESCRIPTION}\b" | cut -d = -f 2-`
|
||||
echo -e "$(echo -e "$out" | grep "\b${2:-DESCRIPTION}\b" | cut -d = -f 2-)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user