{"action":"created","issue":{"url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/39","labels_url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/39/comments","events_url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/39/events","html_url":"https://github.com/jacobsalmela/pi-hole/issues/39","id":103568229,"number":39,"title":"gravity.sh: Syntax error: newline unexpected","user":{"login":"shresthassh","id":5579501,"avatar_url":"https://avatars.githubusercontent.com/u/5579501?v=3","gravatar_id":"","url":"https://api.github.com/users/shresthassh","html_url":"https://github.com/shresthassh","followers_url":"https://api.github.com/users/shresthassh/followers","following_url":"https://api.github.com/users/shresthassh/following{/other_user}","gists_url":"https://api.github.com/users/shresthassh/gists{/gist_id}","starred_url":"https://api.github.com/users/shresthassh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shresthassh/subscriptions","organizations_url":"https://api.github.com/users/shresthassh/orgs","repos_url":"https://api.github.com/users/shresthassh/repos","events_url":"https://api.github.com/users/shresthassh/events{/privacy}","received_events_url":"https://api.github.com/users/shresthassh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-27T18:32:32Z","updated_at":"2015-08-27T18:53:59Z","closed_at":null,"body":"I get this error:\r\npi@rp1 /usr/local/bin $ sudo sh gravity.sh \r\ngravity.sh: 5: gravity.sh: Syntax error: newline unexpected\r\n\r\nThis is raspberry pi2 with raspbian\r\npi@ rp1 /usr/local/bin $ cat /proc/version \r\nLinux version 3.18.11+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #781 PREEMPT Tue Apr 21 18:02:18 BST 2015\r\n\r\npi@rp1 /usr/local/bin $ cat /proc/cpuinfo\r\nprocessor\t: 0\r\nmodel name\t: ARMv6-compatible processor rev 7 (v6l)\r\nBogoMIPS\t: 2.00\r\nFeatures\t: half thumb fastmult vfp edsp java tls \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xb76\r\nCPU revision\t: 7\r\n\r\nHardware\t: BCM2708\r\nRevision\t: 0010\r\nSerial\t\t: 0000000040f0a897\r\n\r\npi@rp1 /usr/local/bin $ sudo rm gravity.sh \r\npi@rp1 /usr/local/bin $ ls\r\nchronometer.sh  indiecity\r\npi@rp1 /usr/local/bin $ sudo wget https://github.com/jacobsalmela/pi-hole/blob/master/gravity.sh\r\n--2015-08-27 13:25:31--  https://github.com/jacobsalmela/pi-hole/blob/master/gravity.sh\r\nResolving github.com (github.com)... 192.30.252.129\r\nConnecting to github.com (github.com)|192.30.252.129|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: unspecified [text/html]\r\nSaving to: `gravity.sh'\r\n\r\n    [ <=>                                                                                                                  ] 74,921      --.-K/s   in 0.1s    \r\n\r\n2015-08-27 13:25:37 (562 KB/s) - `gravity.sh' saved [74921]\r\n\r\npi@rp1 /usr/local/bin $ sudo sh gravity.sh \r\ngravity.sh: 5: gravity.sh: Syntax error: newline unexpected\r\npi@rp1 /usr/local/bin $ ls -ls\r\ntotal 84\r\n 4 -rwxr-xr-x 1 root staff      1392 Aug 12 22:35 chronometer.sh\r\n76 -rw-r--r-- 1 root staff     74921 Aug 27 13:25 gravity.sh\r\n 4 drwxrwsr-x 2 root indiecity  4096 May  6 18:17 indiecity\r\npi@rp1 /usr/local/bin $ \r\npi@ rp1 /usr/local/bin $ uname -a\r\nLinux eautapi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/comments/135522184","html_url":"https://github.com/jacobsalmela/pi-hole/issues/39#issuecomment-135522184","issue_url":"https://api.github.com/repos/jacobsalmela/pi-hole/issues/39","id":135522184,"user":{"login":"jacobsalmela","id":3843505,"avatar_url":"https://avatars.githubusercontent.com/u/3843505?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobsalmela","html_url":"https://github.com/jacobsalmela","followers_url":"https://api.github.com/users/jacobsalmela/followers","following_url":"https://api.github.com/users/jacobsalmela/following{/other_user}","gists_url":"https://api.github.com/users/jacobsalmela/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobsalmela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobsalmela/subscriptions","organizations_url":"https://api.github.com/users/jacobsalmela/orgs","repos_url":"https://api.github.com/users/jacobsalmela/repos","events_url":"https://api.github.com/users/jacobsalmela/events{/privacy}","received_events_url":"https://api.github.com/users/jacobsalmela/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T18:53:59Z","updated_at":"2015-08-27T18:53:59Z","body":"It still works for me.  It looks like you're using `sh` and this is a `bash` script so maybe there is some small difference? Also, are you running Raspbian or something else?"}}