alx-tools / Betty

Holberton-style C code checker written in Perl
GNU General Public License v3.0
1.26k stars 1.77k forks source link

mandb Command Not Found on macOS During Installation #60

Open Abdurahman-hassan opened 9 months ago

Abdurahman-hassan commented 9 months ago

Problem:

The installation script for Betty includes the mandb command, which is not available on macOS. This results in an error message (mandb: command not found) when the script is run on a macOS system.

Impact:

This issue causes confusion and may lead users to believe that the installation process has failed, even though Betty is installed correctly.

Proposed Solution:

Modify the installation script to check the operating system type. If the script detects macOS (darwin), it should skip the mandb command and display a message indicating that this step is not necessary. On Linux systems, the script should execute mandb as usual.

Testing:

The modified script has been tested on both macOS and Linux systems to ensure that it behaves as expected, skipping the mandb command on macOS and executing it on Linux.

Link to Issue

Addresses issue #60.