Merge pull request #4449 from Bnyro/master

chore: read from first arg in changelog.sh script
This commit is contained in:
Bnyro 2023-08-13 13:34:39 +02:00 committed by GitHub
commit 48cc08e4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
# check whether there's a file passed as argument ## Usage: ./changelog.sh <text>
! [ -f "$1" ] && echo "File doesn't exist" && exit 1
# read the file TEXT="$1"
TEXT=$(<"$1")
# the link containing the full commit history # the link containing the full commit history
FULLCHANGELOG=$(echo "$TEXT{@}" | tail -n 1) FULLCHANGELOG=$(echo "$TEXT{@}" | tail -n 1)