diff options
Diffstat (limited to '.local/bin/development/gitpush')
-rwxr-xr-x | .local/bin/development/gitpush | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/development/gitpush b/.local/bin/development/gitpush index 0af8e20..7774a7b 100755 --- a/.local/bin/development/gitpush +++ b/.local/bin/development/gitpush @@ -8,13 +8,12 @@ push_to_remote() { esac git add --all - git commit - git push -u origin + git commit && git push -u origin } [ -z "$1" ] && { push_to_remote; exit; } for dir in "$@"; do - cd "$dir" || exit 1 + cd "$dir" || exit push_to_remote done |