-won’t display changes notes
This commit is contained in:
2025-01-06 09:23:46 +01:00
parent 9e9a58ff9f
commit bdb26651b1

View File

@@ -1,17 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION="v1.1.1" VERSION="v1.1.3"
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"
### Variables for self updating ### Variables for self updating
ScriptArgs=( "$@" ) ScriptArgs=( "$@" )
@@ -28,8 +17,11 @@ dotenv () {
dotenv dotenv
### ChangeNotes: 1.1.1 Bugfix with .env path ### ChangeNotes: 1.1.3 Won't display Changes notes
# Minor corrections. ### 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" Github="https://github.com/bruno21/bashbirds"
# Repo normal: # Repo normal:
#RawUrl="https://raw.githubusercontent.com/Bruno21/bashbirds/main/bashbirds.sh" #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: ### 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 '"')" 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="" #[[ $LatestRelease != $VERSION ]] && new="($LatestRelease)" || new=""
echo "$LatestRelease" echo "$LatestRelease"
echo "$LatestChanges" 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" echo -e "${yellowbold}Bashbird${reset} $VERSION\n"