Skip to content

Commit

Permalink
check for hook only if frontend modified
Browse files Browse the repository at this point in the history
  • Loading branch information
jpandersen87 committed Sep 4, 2024
1 parent 11474db commit bc02032
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .environment/frontend/run-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ function modified_check() {
cd "$DIR/../../frontend-react";
FRONTEND_DIR=$(pwd);

if [ ! -f "$HOOK_FILE" ]; then
echo "$FRONTEND_DIR/$HOOK_FILE does not exist. Please make sure you run yarn first."
exit 1
fi

modified_check
if [[ ${isModified} == 1 ]]; then
if [ ! -f "$HOOK_FILE" ]; then
echo "$FRONTEND_DIR/$HOOK_FILE does not exist. Please make sure you run yarn first."
exit 1
fi
"./$HOOK_FILE"
fi
RC=$?
Expand Down

0 comments on commit bc02032

Please sign in to comment.