From d091a2c4bb47b0b9abe52d5941bfbfeb6a8dc644 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 18 Apr 2015 16:27:40 +0900 Subject: [PATCH] [fzf-tmux] Minor adjustment --- bin/fzf-tmux | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index fb00edb..8c16eb0 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -101,14 +101,11 @@ cleanup() { trap cleanup EXIT SIGINT SIGTERM # Build arguments to fzf -touch $argsf -if [ ${#args[@]} -gt 0 ]; then - str="" - for arg in "${args[@]}"; do - str="$str \"${arg//\"/\\\"}\"" - done - cat <<< "$str" > $argsf -fi +str="" +for arg in "${args[@]}"; do + str="$str \"${arg//\"/\\\"}\"" +done +cat <<< "$str" > $argsf fail() { >&2 echo "$1"