Browse Source

man/fill_template: Use POSIX compatible comparison.

Bash supports == comparison, but other /bin/sh implementations may
not.
pull/932/head
Vagrant Cascadian Nicholas D Steeves 2 years ago
parent
commit
7eac4777ef
No known key found for this signature in database GPG Key ID: 5A8830475F7D1061
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      man/fill_template

+ 1
- 1
man/fill_template View File

@@ -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


Loading…
Cancel
Save