Update file run_onchange_after_14-keybase.tmpl
This commit is contained in:
parent
d0106e764e
commit
6df4980966
1 changed files with 8 additions and 5 deletions
|
@ -7,12 +7,15 @@
|
|||
{{ includeTemplate "universal/logg" }}
|
||||
|
||||
if command -v keybase > /dev/null; then
|
||||
logg info 'Ensuring /etc/keybase is a directory'
|
||||
sudo mkdir -p /etc/keybase
|
||||
|
||||
KEYBASE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/keybase/config.json"
|
||||
logg info "Copying $KEYBASE_CONFIG to /etc/keybase/config.json"
|
||||
sudo cp -f "$KEYBASE_CONFIG" /etc/keybase/config.json
|
||||
if [ -f "$KEYBASE_CONFIG" ]; then
|
||||
logg info 'Ensuring /etc/keybase is a directory'
|
||||
sudo mkdir -p /etc/keybase
|
||||
logg info "Copying $KEYBASE_CONFIG to /etc/keybase/config.json"
|
||||
sudo cp -f "$KEYBASE_CONFIG" /etc/keybase/config.json
|
||||
else
|
||||
logg warn "No Keybase config located at $KEYBASE_CONFIG"
|
||||
fi
|
||||
else
|
||||
logg info 'The `keybase` executable is not available'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue