Return pushdot error codes

This commit is contained in:
Sage Vaillancourt 2024-02-19 00:49:01 -05:00
parent 99e817e42c
commit 1e1ee467f6
1 changed files with 4 additions and 0 deletions

View File

@ -102,12 +102,16 @@ function push-dconf {
function pushdot {
cd "$DOT_DIR" || return 1
local res
if [ $# -eq 0 ]; then
git commit -a && git push -u origin main && push-dconf
res="$?"
else
git commit -a -m "$@" && git push -u origin main && push-dconf
res="$?"
fi
cd -
return $res
}
function getdot {