Reset system detection cache after cleanup
After clearing toolkit data, the detection cache needs to be reset so the launcher will re-detect system info on next menu display. Changes: - Unset SYS_DETECTION_COMPLETE flag - Unset all SYS_* environment variables - Show user that cache was cleared Fixes issue where cleanup wouldn't trigger re-detection
This commit is contained in:
@@ -240,4 +240,13 @@ if [ "${missing:-0}" -gt 0 ]; then
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
# Reset system detection cache so it re-detects on next menu display
|
||||
unset SYS_DETECTION_COMPLETE
|
||||
for var in $(compgen -e | grep "^SYS_"); do
|
||||
unset "$var"
|
||||
done
|
||||
echo -e "${CYAN}[INFO]${NC} System detection cache cleared - will re-detect on next menu"
|
||||
echo ""
|
||||
|
||||
press_enter
|
||||
|
||||
Reference in New Issue
Block a user