Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Command Not Found Error on macOS During Installation #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Abdurahman-hassan
Copy link

Pull Request: mandb Command Not Found on macOS During Installation

Problem

During the installation of Betty, the script executes the mandb command, which is unavailable on macOS. This results in the error mandb: command not found. This issue causes confusion among macOS users, as it may appear that the installation process has failed.

Proposed Solution

The installation script should be modified to:

  • Detect the operating system.
  • On macOS (identified by OSTYPE as darwin), skip the mandb command and display a message indicating the step is unnecessary.
  • On Linux, execute mandb as usual.

Testing

  • The modified script has been tested on both macOS and Linux.
  • On macOS, the script skips the mandb step and displays a message.
  • On Linux, the script executes mandb without issues.

Impact

This change ensures a smoother installation experience on macOS and maintains the current functionality on Linux.

- Modified install.sh to check operating system type.
- Added condition to skip  command on macOS (darwin).
- Maintained  execution on Linux systems.
- Ensures smoother installation on macOS without affecting Linux behavior.
- Addresses issue alx-tools#60.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants