Return pushdot error codes
This commit is contained in:
parent
99e817e42c
commit
1e1ee467f6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue