Compare commits
2 Commits
a9147a2afc
...
e3b1311897
| Author | SHA1 | Date | |
|---|---|---|---|
| e3b1311897 | |||
| 96e30ae5d8 |
@@ -39,10 +39,6 @@ cat <<EOF > /etc/profile.d/gaunt_custom_bash.sh
|
||||
export HISTTIMEFORMAT="%F %T "
|
||||
EOF
|
||||
|
||||
# fastfetch
|
||||
# download srouce code of latest releases page
|
||||
FASTFETCH_RELEASES_API=$(wget -O - https://api.github.com/repos/fastfetch-cli/fastfetch/releases/latest)
|
||||
|
||||
# Debian OS
|
||||
if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
||||
|
||||
@@ -73,6 +69,8 @@ if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
||||
|
||||
# FastFetch install
|
||||
#FASTFETCH_FILENAME="fastfetch-linux-amd64.deb"
|
||||
# download srouce code of latest releases page
|
||||
FASTFETCH_RELEASES_API=$(wget -O - https://api.github.com/repos/fastfetch-cli/fastfetch/releases/latest)
|
||||
DOWNLOAD_URL=$(echo ${FASTFETCH_RELEASES_API} | jq -r '.assets[].browser_download_url | select(. | endswith("fastfetch-linux-amd64.deb"))')
|
||||
wget -P /tmp ${DOWNLOAD_URL}
|
||||
apt install --yes /tmp/fastfetch-linux-amd64.deb
|
||||
@@ -159,6 +157,8 @@ elif [ "${OS}" == "CentOS" ] || [ "${OS}" == "Rocky" ]; then
|
||||
|
||||
# FastFetch install
|
||||
#FASTFETCH_FILENAME="fastfetch-linux-amd64.deb"
|
||||
# download srouce code of latest releases page
|
||||
FASTFETCH_RELEASES_API=$(wget -O - https://api.github.com/repos/fastfetch-cli/fastfetch/releases/latest)
|
||||
DOWNLOAD_URL=$(echo ${FASTFETCH_RELEASES_API} | jq -r '.assets[].browser_download_url | select(. | endswith("fastfetch-linux-amd64.rpm"))')
|
||||
wget -P /tmp ${DOWNLOAD_URL}
|
||||
dnf install -y /tmp/fastfetch-linux-amd64.rpm
|
||||
|
||||
Reference in New Issue
Block a user