From fb8ee6e2eb6523956d585317cbe7ffc629fed608 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Wed, 14 Feb 2024 17:33:08 +0100 Subject: [PATCH] functions: do not fail if not building pixel devices Signed-off-by: steadfasterX --- Scripts/LineageOS-18.1/Functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/LineageOS-18.1/Functions.sh b/Scripts/LineageOS-18.1/Functions.sh index 66ba1ce3..3078fa85 100644 --- a/Scripts/LineageOS-18.1/Functions.sh +++ b/Scripts/LineageOS-18.1/Functions.sh @@ -139,8 +139,8 @@ patchWorkspaceReal() { #Deblobbing fixes ##setup-makefiles doesn't execute properly for some devices, running it twice seems to fix whatever is wrong - cd device/google/marlin/marlin && ./setup-makefiles.sh && cd "$DOS_BUILD_BASE"; - cd device/google/marlin/sailfish && ./setup-makefiles.sh && cd "$DOS_BUILD_BASE"; + [[ -d device/google/marlin/marlin ]] && cd device/google/marlin/marlin && ./setup-makefiles.sh && cd "$DOS_BUILD_BASE"; + [[ -d device/google/marlin/sailfish ]] && cd device/google/marlin/sailfish && ./setup-makefiles.sh && cd "$DOS_BUILD_BASE"; } export -f patchWorkspaceReal;