From f1b768a8dfe7414e89c51f2dbf5d67e9a7956b06 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 26 Jan 2024 11:20:10 +0900 Subject: [PATCH] dev (minor): refactor patch.sh --- neko/update/patch.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/neko/update/patch.sh b/neko/update/patch.sh index 33b81b98c..3b363f84a 100755 --- a/neko/update/patch.sh +++ b/neko/update/patch.sh @@ -8,7 +8,9 @@ set -eu [ ! -f neko/flags/add_volume_to_docker_compose ] || mv neko/flags/add_volume_to_docker_compose neko/flags/20240102_add_volume_to_docker_compose # remove native-utils -rm -rf packages/backend/native-utils/built -rm -rf packages/backend/native-utils/node_modules -rm -rf packages/backend/native-utils/target -rmdir packages/backend/native-utils || : +if [ -d packages/backend/native-utils ]; then + rm --recursive --force packages/backend/native-utils/built + rm --recursive --force packages/backend/native-utils/node_modules + rm --recursive --force packages/backend/native-utils/target + rmdir packages/backend/native-utils || : +fi