Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch the exit code of git pull #773

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion shift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ sub_ps() { # - Print service information

sub_pull() { # - Update the codebase to HEAD of currently deployed branch from https://github.com/shift-org/shift-docs
echo "pulling most recent commit from deployed branch of https://github.com/shift-org/shift-docs"
cd ${ROOT} ; git pull
cd ${ROOT}
git pull || exit 1
# forces a recreation and restart of the containers from their images
sub_up
}
Expand Down