dev (minor): refactor patch.sh

This commit is contained in:
naskya 2024-01-26 11:20:10 +09:00
parent bf75da4f95
commit 0365d2d337
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -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