diff --git a/snippy b/snippy index 53f35d9..9a3a943 100755 --- a/snippy +++ b/snippy @@ -80,12 +80,7 @@ run(){ else content="$(bashdown < "${DIR}/${FILE}")" fi - # clip launch copyq, don't pass the filename in buffer - if [[ ! ${FILE} == "clip" ]] && [[ "${#content}" == 0 ]]; then - printf "%s" "${FILE}" > $TMPFILE - else - printf "%s" "$content" > $TMPFILE - fi + printf "%s" "$content" > $TMPFILE else ${FILE} &> $TMPFILE # execute as bashcommand fi