moved fastfetch after the wget install
This commit is contained in:
@@ -39,10 +39,6 @@ cat <<EOF > /etc/profile.d/gaunt_custom_bash.sh
|
|||||||
export HISTTIMEFORMAT="%F %T "
|
export HISTTIMEFORMAT="%F %T "
|
||||||
EOF
|
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
|
# Debian OS
|
||||||
if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
||||||
|
|
||||||
@@ -73,6 +69,8 @@ if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
|
|||||||
|
|
||||||
# FastFetch install
|
# FastFetch install
|
||||||
#FASTFETCH_FILENAME="fastfetch-linux-amd64.deb"
|
#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"))')
|
DOWNLOAD_URL=$(echo ${FASTFETCH_RELEASES_API} | jq -r '.assets[].browser_download_url | select(. | endswith("fastfetch-linux-amd64.deb"))')
|
||||||
wget -P /tmp ${DOWNLOAD_URL}
|
wget -P /tmp ${DOWNLOAD_URL}
|
||||||
apt install --yes /tmp/fastfetch-linux-amd64.deb
|
apt install --yes /tmp/fastfetch-linux-amd64.deb
|
||||||
@@ -159,6 +157,8 @@ elif [ "${OS}" == "CentOS" ] || [ "${OS}" == "Rocky" ]; then
|
|||||||
|
|
||||||
# FastFetch install
|
# FastFetch install
|
||||||
#FASTFETCH_FILENAME="fastfetch-linux-amd64.deb"
|
#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"))')
|
DOWNLOAD_URL=$(echo ${FASTFETCH_RELEASES_API} | jq -r '.assets[].browser_download_url | select(. | endswith("fastfetch-linux-amd64.rpm"))')
|
||||||
wget -P /tmp ${DOWNLOAD_URL}
|
wget -P /tmp ${DOWNLOAD_URL}
|
||||||
dnf install -y /tmp/fastfetch-linux-amd64.rpm
|
dnf install -y /tmp/fastfetch-linux-amd64.rpm
|
||||||
|
|||||||
Reference in New Issue
Block a user