aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:09:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:09:32 -0300
commit2c18c4f213d8081e4243e8f37007af93cddf4695 (patch)
treebb096ebb5b103ddc8a0c5c7741446b2e0e8b2c99
parent4ce226cdce2b8e885d22b1c482bbfcb65fe382fb (diff)
downloadkeyringer-2c18c4f213d8081e4243e8f37007af93cddf4695.tar.gz
keyringer-2c18c4f213d8081e4243e8f37007af93cddf4695.tar.bz2
Create preferences file on 'keyringer init'
-rwxr-xr-xkeyringer4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyringer b/keyringer
index b62c242..b7cca46 100755
--- a/keyringer
+++ b/keyringer
@@ -81,6 +81,7 @@ function keyringer_init {
# Add entry
chmod 700 "$BASEDIR"
echo "$KEYRING=\"$BASEDIR\"" >> "$CONFIG"
+ touch $CONFIG_BASE/$KEYRING
# Init
if ! keyringer_is_git "$BASEDIR"; then
@@ -108,7 +109,8 @@ function keyringer_dispatch {
NAME="keyringer"
KEYRINGER_VERSION="0.2.5"
CONFIG_VERSION="0.1"
-CONFIG="$HOME/.$NAME/config"
+CONFIG_BASE="$HOME/.$NAME"
+CONFIG="$CONFIG_BASE/config"
BASENAME="`basename $0`"
KEYRING="$1"
ACTION="$2"