{"action":"closed","issue":{"url":"https://api.github.com/repos/joyent/sdc-vmtools-lx-brand/issues/10","labels_url":"https://api.github.com/repos/joyent/sdc-vmtools-lx-brand/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/joyent/sdc-vmtools-lx-brand/issues/10/comments","events_url":"https://api.github.com/repos/joyent/sdc-vmtools-lx-brand/issues/10/events","html_url":"https://github.com/joyent/sdc-vmtools-lx-brand/issues/10","id":109675734,"number":10,"title":"common.lib import forces CWD to be /","user":{"login":"MerlinDMC","id":3879,"avatar_url":"https://avatars.githubusercontent.com/u/3879?v=3","gravatar_id":"","url":"https://api.github.com/users/MerlinDMC","html_url":"https://github.com/MerlinDMC","followers_url":"https://api.github.com/users/MerlinDMC/followers","following_url":"https://api.github.com/users/MerlinDMC/following{/other_user}","gists_url":"https://api.github.com/users/MerlinDMC/gists{/gist_id}","starred_url":"https://api.github.com/users/MerlinDMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MerlinDMC/subscriptions","organizations_url":"https://api.github.com/users/MerlinDMC/orgs","repos_url":"https://api.github.com/users/MerlinDMC/repos","events_url":"https://api.github.com/users/MerlinDMC/events{/privacy}","received_events_url":"https://api.github.com/users/MerlinDMC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/sdc-vmtools-lx-brand/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"chorrell","id":2781,"avatar_url":"https://avatars.githubusercontent.com/u/2781?v=3","gravatar_id":"","url":"https://api.github.com/users/chorrell","html_url":"https://github.com/chorrell","followers_url":"https://api.github.com/users/chorrell/followers","following_url":"https://api.github.com/users/chorrell/following{/other_user}","gists_url":"https://api.github.com/users/chorrell/gists{/gist_id}","starred_url":"https://api.github.com/users/chorrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chorrell/subscriptions","organizations_url":"https://api.github.com/users/chorrell/orgs","repos_url":"https://api.github.com/users/chorrell/repos","events_url":"https://api.github.com/users/chorrell/events{/privacy}","received_events_url":"https://api.github.com/users/chorrell/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-04T11:31:01Z","updated_at":"2015-10-04T16:35:15Z","closed_at":"2015-10-04T16:35:15Z","body":"`. ./lib/smartdc/common.lib` will only succeed if the calling process is run from `/`\r\n\r\nshould either be `. /lib/smartdc/common.lib` or determine the lib folder path prior to the import like\r\n\r\n```\r\n. $(cd $(dirname $0) && pwd)/common.lib\r\n```\r\nor \r\n```\r\n. $(realpath $(dirname $0))/common.lib\r\n```\r\n\r\n`realpath` seems to be available in the busybox sh as well."}}