aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-07-22 01:51:46 -0400
committerTeddy Wing2016-07-22 01:51:46 -0400
commit950c61432dd973bb0ba2c19a0483740d9e1f7d01 (patch)
tree88d79ab5c554e391608e261c1ccb8d7f22a90b78
parent80504f6387f9bb2e831588e7ce933ef6f78383dd (diff)
downloadqcd-950c61432dd973bb0ba2c19a0483740d9e1f7d01.tar.bz2
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`.
-rwxr-xr-xqcd3
1 files changed, 2 insertions, 1 deletions
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