chore: read from first arg in changelog.sh script

This commit is contained in:
Bnyro 2023-08-13 13:35:15 +02:00
parent e6b61734c9
commit cb6da0e873

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)