From 7d3c9e1cb5734da64fe60e23327f7198c47ea1ca Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Sat, 21 Jan 2017 11:41:14 -0600 Subject: [PATCH] Run auto-alt after `yadm config` --- yadm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index b6c74e5..bcacb5f 100755 --- a/yadm +++ b/yadm @@ -245,6 +245,9 @@ function config() { else #; operate on the yadm configuration file git config --file="$(mixed_path "$YADM_CONFIG")" "$@" + + CHANGES_POSSIBLE=1 + fi } @@ -594,7 +597,7 @@ function auto_alt() { if [ "$CHANGES_POSSIBLE" = "1" ] ; then auto_alt=$(config --bool yadm.auto-alt) if [ "$auto_alt" != "false" ] ; then - alt + [ -d "$YADM_REPO" ] && alt fi fi @@ -606,7 +609,7 @@ function auto_perms() { if [ "$CHANGES_POSSIBLE" = "1" ] ; then auto_perms=$(config --bool yadm.auto-perms) if [ "$auto_perms" != "false" ] ; then - perms + [ -d "$YADM_REPO" ] && perms fi fi