From a3e97391f2968da76b863abfe748d9f802bcafc6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 12 Aug 2018 21:29:27 +0200 Subject: [PATCH] Create the goto database if it doesn't already exist This makes sure the goto database file is always created when entries need to be written to it. --- goto.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/goto.sh b/goto.sh index 7a21754..637a8bc 100644 --- a/goto.sh +++ b/goto.sh @@ -75,6 +75,7 @@ goto() _goto_resolve_db() { GOTO_DB="${GOTO_DB:-$HOME/.goto}" + touch -a "$GOTO_DB" } _goto_usage()