From 9654e58a79bc814595aee1d01c3c27f012525b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B6rkert?= Date: Tue, 22 Jul 2025 21:51:26 +0200 Subject: [PATCH] Only run in the LoopFollow folder --- Scripts/swiftformat.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/swiftformat.sh b/Scripts/swiftformat.sh index 16c5f5e07..9cfb2403a 100755 --- a/Scripts/swiftformat.sh +++ b/Scripts/swiftformat.sh @@ -1,5 +1,12 @@ #! /bin/sh +# Check if the folder name is exactly "LoopFollow" +FOLDER_NAME=$(basename "${SRCROOT}") +if [ "${FOLDER_NAME}" != "LoopFollow" ]; then + echo "Skipping swiftformat: This script only runs in the LoopFollow directory, not in '${FOLDER_NAME}'" + exit 0 +fi + function assertEnvironment { if [ -z $1 ]; then echo $2