Version 1.2 (2024-05-08)
Changes
- I added checks for the existence of the commands used in the
print_system_info
function using thecommand -v command_name &>/dev/null
command. This prevents errors that may occur if a command is not available in the system. - I introduced explanatory comments to facilitate understanding for other programmers or users.
- I optimized the
package_count
function to avoid unnecessary command executions and removed some redundancies in terms of testing the existence of commands. - I emphasized uniform styling of the code, such as indentation and the use of spaces, for easier readability.