simplify initialising variables in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-30 18:41:57 +01:00
parent 49b266eb42
commit 0a0defd325
10 changed files with 51 additions and 122 deletions
+3 -7
View File
@@ -21,18 +21,14 @@ filelist="${filelist} checkversion"
version="version-unknown"
versiondate="version-date-unknown"
reldir=""
dirname=""
srcdir=""
eval "$(setvars "" reldir dirname srcdir)"
printf "Building source code archive, version %s\n" "${version}"
main()
{
[ -f version ] && \
read version < version
[ -f versiondate ] && \
read versiondate < versiondate
[ -f version ] && read version < version
[ -f versiondate ] && read versiondate < versiondate
create_release_directory
download_modules