Epitech / coding-style-checker

25 stars 43 forks source link

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

Closed ThibautHH closed 2 years ago

ThibautHH commented 2 years 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 2 years 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.