Epitech / coding-style-checker

22 stars 45 forks source link

Fixed missing double-quotes needed for paths with spaces. #3

Closed ThibautHH closed 1 year ago

ThibautHH commented 1 year ago

Error's location

coding-style.sh

Platform concerned

[x] Linux [ ] Windows

Error's description

When supplying a directory whose path contain spaces to the script as the input or output directory, the script errors and freezes on: grep: /path/to/dir_with_spaces/<first word>: No such file or directory

Error reproduction

cd mkdir 'Test directory' coding-style.sh '~/Test directory' ~ ... grep: /home/$USER/Test: No such file or directory (granted you have no ~/Test directory, but either way it targets the wrong dir)

ThibautHH commented 1 year ago

Missed the quotes around the rm command, which caused (still in case of dirs with spaces) the log lines to add up in the file. Fixed by 839f1f0.