Skip to content

Commit

Permalink
Remove useless "cat" invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Oct 26, 2023
1 parent e972f91 commit b1bd1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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//')
Expand Down

0 comments on commit b1bd1a1

Please sign in to comment.