aboutsummaryrefslogtreecommitdiff
path: root/open-stdin
diff options
context:
space:
mode:
Diffstat (limited to 'open-stdin')
-rwxr-xr-xopen-stdin4
1 files changed, 2 insertions, 2 deletions
diff --git a/open-stdin b/open-stdin
index 48792b6..a776b9f 100755
--- a/open-stdin
+++ b/open-stdin
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Saves standard input in a download folder and opens it with myopen 3# Saves standard input in a download folder and opens it (spawn)
4# Usage: open-stdin 4# Usage: open-stdin
5# Requires: open-file 5# Requires: open-file
6 6
@@ -9,4 +9,4 @@ folder=${TMPDIR:-/tmp}
9 9
10tempfile=$(mktemp -p "$folder") 10tempfile=$(mktemp -p "$folder")
11 11
12cat > "$tempfile" && open-file -t "$1" "$tempfile" 12cat > "$tempfile" && open-file -s spawn -t "$1" "$tempfile"

Generated with cgit - Back to sebastiano.tronto.net