{"action":"created","issue":{"url":"https://api.github.com/repos/jgigault/42FileChecker/issues/16","labels_url":"https://api.github.com/repos/jgigault/42FileChecker/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jgigault/42FileChecker/issues/16/comments","events_url":"https://api.github.com/repos/jgigault/42FileChecker/issues/16/events","html_url":"https://github.com/jgigault/42FileChecker/pull/16","id":122719405,"number":16,"title":"norminette","user":{"login":"lpoujade","id":16082190,"avatar_url":"https://avatars.githubusercontent.com/u/16082190?v=3","gravatar_id":"","url":"https://api.github.com/users/lpoujade","html_url":"https://github.com/lpoujade","followers_url":"https://api.github.com/users/lpoujade/followers","following_url":"https://api.github.com/users/lpoujade/following{/other_user}","gists_url":"https://api.github.com/users/lpoujade/gists{/gist_id}","starred_url":"https://api.github.com/users/lpoujade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpoujade/subscriptions","organizations_url":"https://api.github.com/users/lpoujade/orgs","repos_url":"https://api.github.com/users/lpoujade/repos","events_url":"https://api.github.com/users/lpoujade/events{/privacy}","received_events_url":"https://api.github.com/users/lpoujade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-17T11:43:15Z","updated_at":"2015-12-17T14:21:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jgigault/42FileChecker/pulls/16","html_url":"https://github.com/jgigault/42FileChecker/pull/16","diff_url":"https://github.com/jgigault/42FileChecker/pull/16.diff","patch_url":"https://github.com/jgigault/42FileChecker/pull/16.patch"},"body":"seems like norminette doesn't accept files names with `norminette \"$RET0\"`"},"comment":{"url":"https://api.github.com/repos/jgigault/42FileChecker/issues/comments/165463815","html_url":"https://github.com/jgigault/42FileChecker/pull/16#issuecomment-165463815","issue_url":"https://api.github.com/repos/jgigault/42FileChecker/issues/16","id":165463815,"user":{"login":"jgigault","id":8960628,"avatar_url":"https://avatars.githubusercontent.com/u/8960628?v=3","gravatar_id":"","url":"https://api.github.com/users/jgigault","html_url":"https://github.com/jgigault","followers_url":"https://api.github.com/users/jgigault/followers","following_url":"https://api.github.com/users/jgigault/following{/other_user}","gists_url":"https://api.github.com/users/jgigault/gists{/gist_id}","starred_url":"https://api.github.com/users/jgigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgigault/subscriptions","organizations_url":"https://api.github.com/users/jgigault/orgs","repos_url":"https://api.github.com/users/jgigault/repos","events_url":"https://api.github.com/users/jgigault/events{/privacy}","received_events_url":"https://api.github.com/users/jgigault/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T14:21:20Z","updated_at":"2015-12-17T14:21:20Z","body":"Ok cool.\r\nI re-wrote the way to get the file list to check:\r\n```bash\r\nRET0=$(find \"${MYPATH}\" -type f | grep -E \\\\.\\[hc\\]$ | awk 'BEGIN {ORS=\" \"} {gsub(/\\ /, \"\\\\ \"); print}')\r\n```\r\n\r\nWe now get the absolute path to the files like:\r\n```\r\n/Users/admin/Documents/ma\\ libft/test1.c /Users/admin/Documents/ma\\ libft/test2.c /Users/admin/Documents/ma\\ libft/test3.h\r\n```\r\n\r\nSo that we do not need to \"cd\" anymore because the following command will work from every directories:\r\n```bash\r\nnorminette /Users/admin/Documents/ma\\ libft/test1.c /Users/admin/Documents/ma\\ libft/test2.c /Users/admin/Documents/ma\\ libft/test3.h\r\n```\r\n\r\nWe can remove \"cd\", but we have another issue: Add \"eval\" before \"norminette\" to make it work:\r\n```bash\r\nRET2=`eval norminette $RET0 2>&1`\r\n```\r\n\r\nTell me if you want me to change the code, but I would like you to commit this fix"}}