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
No known key found for this signature in database
GPG Key ID: 5A8830475F7D1061
1 changed files with
1 additions and
1 deletions
-
man/fill_template
|
@@ -2,7 +2,7 @@ |
|
|
d="" |
|
|
d="" |
|
|
[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" |
|
|
[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" |
|
|
|
|
|
|
|
|
if [ "$2" == "True" ]; then |
|
|
|
|
|
|
|
|
if [ "$2" = "True" ]; then |
|
|
for i in *.0 ; do |
|
|
for i in *.0 ; do |
|
|
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1 |
|
|
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1 |
|
|
done |
|
|
done |
|
|