{"comment":{"url":"https://api.github.com/repos/RetroPie/sixad/comments/16567083","html_url":"https://github.com/RetroPie/sixad/commit/3de5d490d237e31c4ac2a1d48390979d856953a0#commitcomment-16567083","id":16567083,"user":{"login":"joolswills","id":5365574,"avatar_url":"https://avatars.githubusercontent.com/u/5365574?v=3","gravatar_id":"","url":"https://api.github.com/users/joolswills","html_url":"https://github.com/joolswills","followers_url":"https://api.github.com/users/joolswills/followers","following_url":"https://api.github.com/users/joolswills/following{/other_user}","gists_url":"https://api.github.com/users/joolswills/gists{/gist_id}","starred_url":"https://api.github.com/users/joolswills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joolswills/subscriptions","organizations_url":"https://api.github.com/users/joolswills/orgs","repos_url":"https://api.github.com/users/joolswills/repos","events_url":"https://api.github.com/users/joolswills/events{/privacy}","received_events_url":"https://api.github.com/users/joolswills/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"3de5d490d237e31c4ac2a1d48390979d856953a0","created_at":"2016-03-08T17:06:09Z","updated_at":"2016-03-08T17:06:09Z","body":" aah you have sudo in that check too - just checked the script - it is really the wrong way to do it imho - with sudo everywhere - just do like in retropie_setup and prompt if not root\r\n\r\n```\r\n# check, if sudo is used\r\nif [[ $(id -u) -ne 0 ]]; then\r\n    echo \"Script must be run as root. Try 'sudo $0'\"\r\n    exit 1\r\nfi\r\n```\r\n"}}