Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

@hiento09
Copy link
Contributor

@hiento09 hiento09 commented Oct 4, 2024

Describe Your Changes

This PR enhances the user experience (UX) in both Linux and macOS uninstall scripts by introducing the following improvements:

1. Default 'no' for Deletion Confirmation:

When prompted to delete the ~/.cortex data folder and .cortexrc configuration file, the script now defaults to 'no' if the user presses Enter without input. This prevents accidental data deletion.

2. Input Validation with Continuous Prompt:

If the user provides invalid input (anything other than 'yes', 'no', 'y', 'n'), the script now repeatedly prompts for valid input instead of exiting. This ensures the user can make a clear, informed choice.

3. Home Directory Adjustments:

For both Linux and macOS, if the script is run by the root user, the home directory is set to /root, instead of /home or /Users, ensuring correct file path handling for system administrators.
These improvements provide a more intuitive and safer interaction for users during the uninstall process.

@hiento09 hiento09 merged commit 6f7a3ed into dev Oct 4, 2024
15 checks passed
@hiento09 hiento09 deleted the chore/postrm-root-user branch October 4, 2024 07:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants