Code & Deploy
Code
Models
Repos
Sign in
@matheusbsbs
/
matheus-bagliano
matheus-bagliano
/
gitk-git
/
generate-tcl.sh
Code
Commits
Pulls
CI/CD
82,027
next
bisect
jch
maint
master
next
seen
test
todo
sh
11 lines
196 Bytes
Copy permalink
Copy
Raw
1
#!/bin/sh
2
3
set
-e
4
5
WISH
=
$(
echo
"
$1
"
|
sed
's/|/\\|/g'
)
6
INPUT
=
"
$2
"
7
OUTPUT
=
"
$3
"
8
9
sed
-e
"1,3s|^exec .*
\"\$
0
\"
|exec
$WISH
\"\$
0
\"
|"
"
$INPUT
"
>
"
$OUTPUT
"
+
10
chmod
a+x
"
$OUTPUT
"
+
11
mv
"
$OUTPUT
"
+
"
$OUTPUT
"