File: envsubst_inplace.sh

package info (click to toggle)
golang-github-google-certificate-transparency 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,764 kB
  • sloc: sh: 606; makefile: 103; sql: 16
file content (8 lines) | stat: -rwxr-xr-x 110 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/sh -e

for f in "$@"; do
  tmpfile=$(mktemp)
  envsubst < "$f" > "$tmpfile"
  mv "$tmpfile" "$f"
done