jjr-joplin/patch.exp

12 lines
143 B
Plaintext
Raw Permalink Normal View History

2022-01-02 13:45:02 +01:00
#!/usr/bin/expect -f
set timeout -1
set patchfile [lindex $argv 0]
spawn sh -c "patch -p1 < $patchfile"
expect "Assume -R?"
send -- "y\r"