[fzf-tmux] Minor adjustment

This commit is contained in:
Junegunn Choi 2015-04-18 16:27:40 +09:00
parent d2f95d69fb
commit d091a2c4bb

View File

@ -101,14 +101,11 @@ cleanup() {
trap cleanup EXIT SIGINT SIGTERM trap cleanup EXIT SIGINT SIGTERM
# Build arguments to fzf # Build arguments to fzf
touch $argsf str=""
if [ ${#args[@]} -gt 0 ]; then for arg in "${args[@]}"; do
str=""
for arg in "${args[@]}"; do
str="$str \"${arg//\"/\\\"}\"" str="$str \"${arg//\"/\\\"}\""
done done
cat <<< "$str" > $argsf cat <<< "$str" > $argsf
fi
fail() { fail() {
>&2 echo "$1" >&2 echo "$1"