{"action":"created","issue":{"url":"https://api.github.com/repos/JuniorCru/basket/issues/9","labels_url":"https://api.github.com/repos/JuniorCru/basket/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/JuniorCru/basket/issues/9/comments","events_url":"https://api.github.com/repos/JuniorCru/basket/issues/9/events","html_url":"https://github.com/JuniorCru/basket/issues/9","id":81828165,"number":9,"title":"Can't use pushd / popd in combination with with_sudo","user":{"login":"pospi","id":437540,"avatar_url":"https://avatars.githubusercontent.com/u/437540?v=3","gravatar_id":"","url":"https://api.github.com/users/pospi","html_url":"https://github.com/pospi","followers_url":"https://api.github.com/users/pospi/followers","following_url":"https://api.github.com/users/pospi/following{/other_user}","gists_url":"https://api.github.com/users/pospi/gists{/gist_id}","starred_url":"https://api.github.com/users/pospi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospi/subscriptions","organizations_url":"https://api.github.com/users/pospi/orgs","repos_url":"https://api.github.com/users/pospi/repos","events_url":"https://api.github.com/users/pospi/events{/privacy}","received_events_url":"https://api.github.com/users/pospi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-28T08:37:05Z","updated_at":"2015-05-29T01:13:26Z","closed_at":null,"body":"It seems like `with_sudo` depends on the working directory being the same as it was when the script began running. This is possibly linked into avoiding re-sourcing basket with each call to the function, which is probably overkill for sudo-safeness and slows down the framework considerably."},"comment":{"url":"https://api.github.com/repos/JuniorCru/basket/issues/comments/106647259","html_url":"https://github.com/JuniorCru/basket/issues/9#issuecomment-106647259","issue_url":"https://api.github.com/repos/JuniorCru/basket/issues/9","id":106647259,"user":{"login":"ncraike","id":1109269,"avatar_url":"https://avatars.githubusercontent.com/u/1109269?v=3","gravatar_id":"","url":"https://api.github.com/users/ncraike","html_url":"https://github.com/ncraike","followers_url":"https://api.github.com/users/ncraike/followers","following_url":"https://api.github.com/users/ncraike/following{/other_user}","gists_url":"https://api.github.com/users/ncraike/gists{/gist_id}","starred_url":"https://api.github.com/users/ncraike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncraike/subscriptions","organizations_url":"https://api.github.com/users/ncraike/orgs","repos_url":"https://api.github.com/users/ncraike/repos","events_url":"https://api.github.com/users/ncraike/events{/privacy}","received_events_url":"https://api.github.com/users/ncraike/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T01:13:26Z","updated_at":"2015-05-29T01:13:26Z","body":"Actually, try just adding `-P` the `pwd` on that `DIR=` line."}}