Skip to content

Commit

Permalink
add check to get_fractal_web
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Oct 10, 2023
1 parent 8cfa342 commit a2b163f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/get_fractal_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ echo "FRACTAL_WEB_GIT=$FRACTAL_WEB_GIT"
if [ ! -z "${FRACTAL_WEB_GIT}" ]; then
cd fractal-web
git checkout $FRACTAL_WEB_GIT
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Error: Checking out to fractal-web@$FRACTAL_WEB_GIT (EXIT_CODE=$EXIT_CODE)"
exit 1
fi
cd ..
else
echo "FRACTAL_WEB_GIT variable is unset, use default branch."
Expand Down

0 comments on commit a2b163f

Please sign in to comment.