Merge pull request #44 from wellle/43-fix-redirection

43 Fix redirection in shell script
This commit is contained in:
Christian Wellenbrock
2014-11-01 12:47:17 +01:00
+1 -1
View File
@@ -17,7 +17,7 @@ fi
MODE="$1" PATTERN="$2" LISTARGS="$3" CAPTUREARGS="$4"
capturepane() {
if [ tmux capture-pane -p &> /dev/null ]; then
if tmux capture-pane -p >/dev/null 2>&1; then
# tmux capture-pane understands -p -> use it
xargs -n1 tmux capture-pane $1 -p -t
else