We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a728c9 commit ec98723Copy full SHA for ec98723
lib/render.sh
@@ -1,24 +1,15 @@
1
Render() {
2
3
- if read -t 0; then
4
- STDIN=$(cat -)
5
- fi
6
-
7
- if [[ ${STDIN} ]]
8
- then
9
10
- source <(echo ${STDIN} | bash-tpl)
11
12
- else
13
14
- if [[ ${1} ]]
15
16
17
- source <(bash-tpl ${1})
18
19
+ if [[ ${1} ]]
+ then
+ source <(bash-tpl ${1})
20
21
+ else
+ if read -t 0; then
+ STDIN=$(cat -)
+ source <(echo ${STDIN} | bash-tpl)
+ fi
22
23
}
24
0 commit comments