1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

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

7
yadm
View File

@@ -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