[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
# Build arguments to fzf
touch $argsf
if [ ${#args[@]} -gt 0 ]; then
str=""
for arg in "${args[@]}"; do
str=""
for arg in "${args[@]}"; do
str="$str \"${arg//\"/\\\"}\""
done
cat <<< "$str" > $argsf
fi
done
cat <<< "$str" > $argsf
fail() {
>&2 echo "$1"