{"action":"opened","issue":{"url":"https://api.github.com/repos/AliView/AliView/issues/59","repository_url":"https://api.github.com/repos/AliView/AliView","labels_url":"https://api.github.com/repos/AliView/AliView/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/AliView/AliView/issues/59/comments","events_url":"https://api.github.com/repos/AliView/AliView/issues/59/events","html_url":"https://github.com/AliView/AliView/issues/59","id":316233309,"number":59,"title":"Linux shell script doesn't work","user":{"login":"bredelings","id":140268,"avatar_url":"https://avatars0.githubusercontent.com/u/140268?v=4","gravatar_id":"","url":"https://api.github.com/users/bredelings","html_url":"https://github.com/bredelings","followers_url":"https://api.github.com/users/bredelings/followers","following_url":"https://api.github.com/users/bredelings/following{/other_user}","gists_url":"https://api.github.com/users/bredelings/gists{/gist_id}","starred_url":"https://api.github.com/users/bredelings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bredelings/subscriptions","organizations_url":"https://api.github.com/users/bredelings/orgs","repos_url":"https://api.github.com/users/bredelings/repos","events_url":"https://api.github.com/users/bredelings/events{/privacy}","received_events_url":"https://api.github.com/users/bredelings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T11:36:44Z","updated_at":"2018-04-20T11:36:44Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\n  A few simple improvements to the linux \"aliview\" shell script could make it easier to use.  My use case is:\r\n* II want to make a symlink from  $HOME/bin/aliview to the aliview shell script at $HOME/Applications/aliview/aliview\r\n\r\nProblems with this are:\r\n* the script does not follow symbolic links\r\n* the variable `aliview` is only set if `\"$progdir/$jarfile\"` is missing.\r\n\r\n\r\nA simple workaround that works on debian is:\r\n```\r\nprog=$0\r\nif [ -n \"$(readlink $prog)\" ]; then\r\n    prog=\"$(readlink $prog)\"\r\nfi\r\nprogdir=$(dirname $prog)\r\naliview=\"$progdir/$jarfile\"\r\n```\r\n\r\nI don't know if the program `readlink` is available on every UNIX... but it might be.\r\nAn alternative is to do this:\r\n   https://github.com/beast-dev/tracer/blob/master/release/Linux/scripts/tracer\r\n"}}
{"actor":{"display_login":"bredelings"}}