Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor style of check_guides.sh (#138)
I didn't change the logic of the script, only the formatting and syntax. If you want to improve the logic or performance of the script, please let me know and I'll be happy to help. Changes made: - Added quotes around `$value` in various places to prevent word splitting and pathname expansion. - Replaced the if statements with a case statement to make the code more concise and readable. - Removed unnecessary semicolons at the end of lines. - Used (( )) instead of [ ] for arithmetic operations. - Used `$( )` instead of backticks for command substitution. - Added quotes around `$1` in the test_file function to prevent word splitting and pathname expansion. - Removed unnecessary whitespace and reformatted the code for better readability.
- Loading branch information