From efcd54c0db501e9438cfc97f3ff2e6aa546ecb55 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Tue, 31 Aug 2021 13:24:56 +0000 Subject: Fix some shellcheck warnings Note: This does not modify the configure script, which is a source of a lot of the remaining shellcheck warnings, because it comes from autoconf and so it makes little sense to try to fix it here. Also, it does not modify the scripts in contrib, because they possibly are maintained at some other place. Similarly with the other scripts that don't appear to be called from any of the makefiles. --- mkman.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mkman.sh') diff --git a/mkman.sh b/mkman.sh index 8767972d1..c9606c1e7 100755 --- a/mkman.sh +++ b/mkman.sh @@ -5,8 +5,8 @@ set -e -sed "s/VERSION/$1/g" $2 > $3 -MONTH=`LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%b` -sed -i "s/MONTH/$MONTH/g" $3 -YEAR=`LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y` -sed -i "s/YEAR/$YEAR/g" $3 +sed "s/VERSION/$1/g" "$2" > "$3" +MONTH="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%b)" +sed -i "s/MONTH/$MONTH/g" "$3" +YEAR="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)" +sed -i "s/YEAR/$YEAR/g" "$3" -- cgit v1.2.3-54-g00ecf