mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: Ensure root node_modules are removed before processing subdirectories
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
|
||||
echo "Removing node_modules directories..."
|
||||
|
||||
# Remove node_modules in root directory first
|
||||
if [ -d "node_modules" ]; then
|
||||
echo "Removing node_modules in root directory"
|
||||
rm -rf node_modules || echo "Failed to remove node_modules in root directory"
|
||||
else
|
||||
echo "No node_modules found in root directory"
|
||||
fi
|
||||
|
||||
for d in */ ; do
|
||||
if [ -d "$d" ]; then
|
||||
cd "$d" || { echo "Cannot cd into $d"; continue; }
|
||||
|
||||
Reference in New Issue
Block a user