diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-09-29 19:09:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-09-29 19:09:32 -0300 |
commit | 2c18c4f213d8081e4243e8f37007af93cddf4695 (patch) | |
tree | bb096ebb5b103ddc8a0c5c7741446b2e0e8b2c99 | |
parent | 4ce226cdce2b8e885d22b1c482bbfcb65fe382fb (diff) | |
download | keyringer-2c18c4f213d8081e4243e8f37007af93cddf4695.tar.gz keyringer-2c18c4f213d8081e4243e8f37007af93cddf4695.tar.bz2 |
Create preferences file on 'keyringer init'
-rwxr-xr-x | keyringer | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |