mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
fixed issue in deploy script
This commit is contained in:
parent
3d656d45de
commit
a9717f7c70
1 changed files with 2 additions and 1 deletions
|
|
@ -10,10 +10,11 @@ ROOT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)" || {
|
|||
exit 1
|
||||
}
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
cd "$ROOT_DIR/web"
|
||||
|
||||
ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
|
||||
cleanup() {
|
||||
# Always try to return to the original branch
|
||||
git switch -q "$ORIG_BRANCH" 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue