From bdb26651b1b5ae61651ff3a4247e4957c628d9de Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Mon, 6 Jan 2025 09:23:46 +0100 Subject: [PATCH] v 1.1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -won’t display changes notes --- bashbirds.sh | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/bashbirds.sh b/bashbirds.sh index 4b9a74e..ad66910 100755 --- a/bashbirds.sh +++ b/bashbirds.sh @@ -1,17 +1,6 @@ #!/usr/bin/env bash -VERSION="v1.1.1" - -red="\033[1;31m" -greenbold="\033[1;32m" -green="\033[0;32m" -yellow="\033[0;33m" -yellowbold="\033[1;33m" -bold="\033[1m" -italic="\033[3m" -#bold_under="\033[1;4m" -underline="\033[4m" -reset="\033[0m" +VERSION="v1.1.3" ### Variables for self updating ScriptArgs=( "$@" ) @@ -28,8 +17,11 @@ dotenv () { dotenv -### ChangeNotes: 1.1.1 Bugfix with .env path -# Minor corrections. +### ChangeNotes: 1.1.3 Won't display Changes notes +### 1.1.1 Bugfix .env path +### 1.1 Bugfix when script was run with symlink +### 1.0 Minor corrections. + Github="https://github.com/bruno21/bashbirds" # Repo normal: #RawUrl="https://raw.githubusercontent.com/Bruno21/bashbirds/main/bashbirds.sh" @@ -38,12 +30,26 @@ RawUrl="https://x-access-token:$GITHUB_TOKEN@raw.githubusercontent.com/Bruno21/b ### Check if there's a new release of the script: LatestRelease="$(curl -s -r 0-50 $RawUrl | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')" -LatestChanges="$(curl -s -r 0-200 $RawUrl | sed -n "/ChangeNotes/s/### ChangeNotes: //p")" +#LatestChanges="$(curl -s -r 0-200 $RawUrl | sed -n "/ChangeNotes/s/### ChangeNotes: //p")" +LatestChanges="$(curl -s -r 0-500 $RawUrl | sed -n "/ChangeNotes/s/# ChangeNotes: //p")" + #[[ $LatestRelease != $VERSION ]] && new="($LatestRelease)" || new="" echo "$LatestRelease" echo "$LatestChanges" +red="\033[1;31m" +greenbold="\033[1;32m" +green="\033[0;32m" +yellow="\033[0;33m" +yellowbold="\033[1;33m" +bold="\033[1m" +italic="\033[3m" +#bold_under="\033[1;4m" +underline="\033[4m" +reset="\033[0m" + + echo -e "${yellowbold}Bashbird${reset} $VERSION\n"