aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 10:34:57 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 14:20:31 +0200
commita0386a1ddade88187b415ba7a54906b28a021310 (patch)
tree56e13572c0334facf451c75082a7d48c83febab2
parent31a3bbafb41b3696077881b779f94d6f4cafb436 (diff)
downloadrtty-a0386a1ddade88187b415ba7a54906b28a021310.tar.gz
rd: Remove named pipes at start
-rw-r--r--Makefile2
-rwxr-xr-xr (renamed from r.sh)0
-rwxr-xr-xrd2
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..de5bec0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+install:
+ install r rd /usr/local/bin
diff --git a/r.sh b/r
index b73f3b2..b73f3b2 100755
--- a/r.sh
+++ b/r
diff --git a/rd b/rd
index 3279929..03ff755 100755
--- a/rd
+++ b/rd
@@ -2,6 +2,6 @@
in=/var/tmp/r.in
out=/var/tmp/r.out
+rm $in $out 2>/dev/null
mkfifo $in $out
-#trap "rm $in $out" EXIT
<$in 2>&1 >$out ssh "$@"