{"action":"opened","issue":{"url":"https://api.github.com/repos/MattSurabian/proxpn-bash-client/issues/10","labels_url":"https://api.github.com/repos/MattSurabian/proxpn-bash-client/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/MattSurabian/proxpn-bash-client/issues/10/comments","events_url":"https://api.github.com/repos/MattSurabian/proxpn-bash-client/issues/10/events","html_url":"https://github.com/MattSurabian/proxpn-bash-client/issues/10","id":114865378,"number":10,"title":"Script does not use system-preferred bash executable","user":{"login":"Pysis868","id":1408565,"avatar_url":"https://avatars.githubusercontent.com/u/1408565?v=3","gravatar_id":"","url":"https://api.github.com/users/Pysis868","html_url":"https://github.com/Pysis868","followers_url":"https://api.github.com/users/Pysis868/followers","following_url":"https://api.github.com/users/Pysis868/following{/other_user}","gists_url":"https://api.github.com/users/Pysis868/gists{/gist_id}","starred_url":"https://api.github.com/users/Pysis868/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pysis868/subscriptions","organizations_url":"https://api.github.com/users/Pysis868/orgs","repos_url":"https://api.github.com/users/Pysis868/repos","events_url":"https://api.github.com/users/Pysis868/events{/privacy}","received_events_url":"https://api.github.com/users/Pysis868/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T17:19:05Z","updated_at":"2015-11-03T17:19:05Z","closed_at":null,"body":"<pre>\r\nWelcome to the ProXPN OpenVPN Bash Client!\r\n\r\nNo credentials file found at /etc/proxpn/login.conf, you will be prompted by OpenVPN to login to ProXPN\r\nThis script must be run as root in order to successfully apply network route configuration.\r\nElevated permissions not detected, falling back to dry-run mode...\r\n\r\n<b>./proxpn: line 91: declare: -A: invalid option</b>\r\ndeclare: usage: declare [-afFirtx] [-p] [name[=value] ...]\r\nWhich exit node would you like to use?\r\n1) 0\r\nSelect an exit node:^C\r\nProXPN OpenVPN Bash Client has been force quit. Goodbye.\r\n</pre>\r\n\r\nRan into this issue on my Mac running OS X El Capitan 10.11, although I don't think that is terribly relevant except for the 'Mac' part; just adding some keywords to search.  Having Homebrew installed I have bash installed through it, but not in the default location, and is actually a different version that the pre-installed one on the system, as can be seen here:\r\n\r\n<pre>\r\nbash-4.3$ /bin/bash --version\r\nGNU bash, version <b>3.2.57</b>(1)-release (x86_64-apple-darwin15)\r\nCopyright (C) 2007 Free Software Foundation, Inc.\r\nbash-4.3$ bash --version\r\nGNU bash, version <b>4.3.42</b>(1)-release (x86_64-apple-darwin14.5.0)\r\nCopyright (C) 2013 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\n\r\nThis is free software; you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n</pre>\r\n\r\nSo to fix this, I propose a simple solution that I think is fairly cross-platform compatible, without explicitly testing it right now.  That would be to change the 'shebang' line in the script to use the bash executable from the environment."}}