v 1.1.3
-won’t display changes notes
This commit is contained in:
36
bashbirds.sh
36
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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user