Remove useless "cat" invocation.

This commit is contained in:
Joachim Bauch 2023-10-26 14:11:34 +02:00
parent e972f911b0
commit b1bd1a1f79
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -4,7 +4,7 @@ ROOT="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
VERSION=
if [ -s "$ROOT/../version.txt" ]; then
VERSION=$(cat "$ROOT/../version.txt" | tr -d '[:space:]')
VERSION=$(tr -d '[:space:]' < "$ROOT/../version.txt")
fi
if [ -z "$VERSION" ] && [ -d "$ROOT/../.git" ]; then
TAG=$(git tag --points-at HEAD | sed 's/v//')