diff --git a/bin/fzf-tmux b/bin/fzf-tmux index fb00edbe08bdc4b19f480da9398677fef81bbc8c..8c16eb038917c20728dda39adb318584a2e042dc 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"