diff --git a/update.sh b/update.sh index 2d0035c..a32ed5f 100644 --- a/update.sh +++ b/update.sh @@ -39,10 +39,6 @@ cat < /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