Skip to content

Fix Command Not Found Error on macOS During Installation#61

Open
Abdurahman-hassan wants to merge 1 commit intoalx-tools:masterfrom
Abdurahman-hassan:master
Open

Fix Command Not Found Error on macOS During Installation#61
Abdurahman-hassan wants to merge 1 commit intoalx-tools:masterfrom
Abdurahman-hassan:master

Conversation

@Abdurahman-hassan
Copy link
Copy Markdown

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