From 1e007db8522c6fd761c492fa6e1a39b454e4701f Mon Sep 17 00:00:00 2001 From: Martichou Date: Mon, 24 Jun 2024 17:59:07 +0200 Subject: [PATCH] fix: fmt script go back to correct directory Signed-off-by: Martichou --- fmt.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fmt.sh b/fmt.sh index 3ebc685..ffddd13 100755 --- a/fmt.sh +++ b/fmt.sh @@ -13,6 +13,8 @@ if git diff --name-only HEAD | grep '^app/legacy/src/' >/dev/null; then # Run your commands pnpm lint --fix + + cd ../../.. else echo "No changes detected in /app/legacy/src." fi @@ -26,6 +28,8 @@ if git diff --name-only HEAD | grep '^app/main/src/' >/dev/null; then # Run your commands pnpm lint --fix + + cd ../../.. else echo "No changes detected in /app/main/src." fi \ No newline at end of file