From 950c61432dd973bb0ba2c19a0483740d9e1f7d01 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 22 Jul 2016 01:51:46 -0400 Subject: qcd: Run initial setup In addition to creating the config directory, also touch the database file to ensure it exists before we query it with `awk` in `shortcut_exists`. --- qcd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcd b/qcd index c4508e5..5657e34 100755 --- a/qcd +++ b/qcd @@ -24,6 +24,7 @@ __EOF__ function setup () { mkdir -p $QCD_CONFIG_DIR + touch $QCD_DATABASE_FILE } function absolute_path () { @@ -85,7 +86,7 @@ function qcd () { return fi - # setup + setup local command=$1 local shortcut=$2 -- cgit v1.2.3