commit 2a79f43028ecba32ca3155ed805de70a915bbdef
parent dd066dc9f49ee6d0c46da2b0c23c52ff90ed98dd
Author: Sotiris Papatheodorou <sotiris@papatheodorou.xyz>
Date: Mon, 12 Sep 2022 17:19:45 +0300
Fix rm command
There was a typo resulting in the following error on quit:
rm: cannot remove '2': No such file or directory
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astro b/astro
@@ -95,7 +95,7 @@ fi
. "$configfile"
# Restore terminal
-trap 'tput rmcup && rm $histfile $linksfile 2&> /dev/null; exit' EXIT INT HUP
+trap 'tput rmcup && rm -f $histfile $linksfile > /dev/null 2>&1; exit' EXIT INT HUP
# ANSI style code
sty_header1="\\033[${sty_header1}m"