From ec8e31a946ff37be35af2e09920f227193b46f1a Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sat, 22 Dec 2018 16:22:22 +0400 Subject: [PATCH] Fix trap to delete temp file --- snippy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippy b/snippy index 1023f26..8dcaf54 100755 --- a/snippy +++ b/snippy @@ -57,7 +57,7 @@ readonly cursor_placeholder="{cursor}" readonly clipboard_placeholder="{clipboard}" readonly tmpfile=$(mktemp) -trap 'rm -f \$tmpfile' EXIT HUP INT TRAP TERM +trap 'rm -f $tmpfile' EXIT HUP INT TRAP TERM # smarty like template engine which executes inline bash in (bashdown) strings (replaces variables with values e.g.) # @link http://github.com/coderofsalvation/bashdown