diff options
author | Leah Rowe <vimuser@noreply.codeberg.org> | 2023-09-03 14:12:47 +0000 |
---|---|---|
committer | Leah Rowe <vimuser@noreply.codeberg.org> | 2023-09-03 14:12:47 +0000 |
commit | 71d361aac7ce790268a5f3454140f23889a56e7d (patch) | |
tree | 56a4c321f5ef1eefadc6bfac4275e47f8468ac40 /script/misc/versioncheck | |
parent | eebf713311ca333f85d75fafb92fdbd729b4a0ba (diff) | |
parent | ef3fb05d66f1b5c94dd65ae2d14b691227d6afbe (diff) |
Merge pull request 'Less cat abuse' (#123) from Riku_V/lbmk:cat into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/123
Diffstat (limited to 'script/misc/versioncheck')
-rwxr-xr-x | script/misc/versioncheck | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/misc/versioncheck b/script/misc/versioncheck index 73fbb140..6ee683ee 100755 --- a/script/misc/versioncheck +++ b/script/misc/versioncheck @@ -21,10 +21,10 @@ set -u . "include/err.sh" -project="$(cat projectname)" +read project < projectname version="version-unknown" -[ -f version ] && version="$(cat version)" +[ -f version ] && read version < version version_="${version}" if [ -e ".git" ]; then version="$(git describe --tags HEAD 2>&1)" || \ @@ -34,7 +34,7 @@ if [ -e ".git" ]; then fi versiondate="version-date-unknown" -[ -f versiondate ] && versiondate="$(cat versiondate)" +[ -f versiondate ] && read versiondate < versiondate versiondate_="${versiondate}" if [ -e ".git" ]; then versiondate="$(git show --no-patch --no-notes --pretty='%ct' HEAD)" || \ |