mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Run auto-alt after yadm config
This commit is contained in:
parent
e2d8742a40
commit
7d3c9e1cb5
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 New Issue
Block a user