Run auto-alt after `yadm config`

This commit is contained in:
Tim Byrne 2017-01-21 11:41:14 -06:00
parent e2d8742a40
commit 7d3c9e1cb5
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E
1 changed files with 5 additions and 2 deletions

7
yadm
View File

@ -245,6 +245,9 @@ function config() {
else else
#; operate on the yadm configuration file #; operate on the yadm configuration file
git config --file="$(mixed_path "$YADM_CONFIG")" "$@" git config --file="$(mixed_path "$YADM_CONFIG")" "$@"
CHANGES_POSSIBLE=1
fi fi
} }
@ -594,7 +597,7 @@ function auto_alt() {
if [ "$CHANGES_POSSIBLE" = "1" ] ; then if [ "$CHANGES_POSSIBLE" = "1" ] ; then
auto_alt=$(config --bool yadm.auto-alt) auto_alt=$(config --bool yadm.auto-alt)
if [ "$auto_alt" != "false" ] ; then if [ "$auto_alt" != "false" ] ; then
alt [ -d "$YADM_REPO" ] && alt
fi fi
fi fi
@ -606,7 +609,7 @@ function auto_perms() {
if [ "$CHANGES_POSSIBLE" = "1" ] ; then if [ "$CHANGES_POSSIBLE" = "1" ] ; then
auto_perms=$(config --bool yadm.auto-perms) auto_perms=$(config --bool yadm.auto-perms)
if [ "$auto_perms" != "false" ] ; then if [ "$auto_perms" != "false" ] ; then
perms [ -d "$YADM_REPO" ] && perms
fi fi
fi fi