Skip to content

Commit

Permalink
man/fill_template: Use POSIX compatible comparison.
Browse files Browse the repository at this point in the history
Bash supports == comparison, but other /bin/sh implementations may
not.
  • Loading branch information
vagrantc authored and sten0 committed Jul 4, 2023
1 parent 299797e commit 7eac477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion man/fill_template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
d=""
[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH"

if [ "$2" == "True" ]; then
if [ "$2" = "True" ]; then
for i in *.0 ; do
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1
done
Expand Down

0 comments on commit 7eac477

Please sign in to comment.