Run auto-alt after yadm config
This commit is contained in:
parent
e2d8742a40
commit
7d3c9e1cb5
1 changed files with 5 additions and 2 deletions
7
yadm
7
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue