fix: add migration shim to Menu and Diagnose scripts
Mac-Menu, Mac-Diagnose, and Windows-Diagnose were missing the core-mac/core-win → core migration shim, causing them to fail on existing USB drives that still have the old directory name.
This commit is contained in:
@@ -49,6 +49,11 @@ else
|
||||
echo -e " ${RED}✗${NC} Node.js: NOT FOUND"
|
||||
fi
|
||||
|
||||
# Migration shim: rename old core-mac to core for existing USB users
|
||||
if [ -d "$UCLAW_DIR/app/core-mac" ] && [ ! -d "$UCLAW_DIR/app/core" ]; then
|
||||
mv "$UCLAW_DIR/app/core-mac" "$UCLAW_DIR/app/core"
|
||||
fi
|
||||
|
||||
# 2. Check core directory
|
||||
echo "[2/6] Checking core directory..."
|
||||
CORE_DIR="$UCLAW_DIR/app/core"
|
||||
|
||||
Reference in New Issue
Block a user