Perform sync even pushdot has no changes to commit
This commit is contained in:
parent
d9a74c9503
commit
4a529f742d
|
@ -170,6 +170,7 @@ function load-extensions {
|
||||||
function pushdot {
|
function pushdot {
|
||||||
cd "$DOT_DIR" || return 1
|
cd "$DOT_DIR" || return 1
|
||||||
local res
|
local res
|
||||||
|
if ! git diff --quiet; then
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
git commit -a
|
git commit -a
|
||||||
res="$?"
|
res="$?"
|
||||||
|
@ -179,10 +180,11 @@ function pushdot {
|
||||||
fi
|
fi
|
||||||
if [[ "$res" == "0" ]]; then
|
if [[ "$res" == "0" ]]; then
|
||||||
git push -u origin main
|
git push -u origin main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
push-extensions
|
push-extensions
|
||||||
sync-history
|
sync-history
|
||||||
push-dconf
|
push-dconf
|
||||||
fi
|
|
||||||
cd -
|
cd -
|
||||||
return $res
|
return $res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue