{"action":"created","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/530","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/530/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/530/events","html_url":"https://github.com/koalaman/shellcheck/issues/530","id":114041698,"number":530,"title":"unexpected '<' for the line: gpio -p mode $ModePin up </p><p># Main Program Loop","user":{"login":"asyariamir","id":15379855,"avatar_url":"https://avatars.githubusercontent.com/u/15379855?v=3","gravatar_id":"","url":"https://api.github.com/users/asyariamir","html_url":"https://github.com/asyariamir","followers_url":"https://api.github.com/users/asyariamir/followers","following_url":"https://api.github.com/users/asyariamir/following{/other_user}","gists_url":"https://api.github.com/users/asyariamir/gists{/gist_id}","starred_url":"https://api.github.com/users/asyariamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asyariamir/subscriptions","organizations_url":"https://api.github.com/users/asyariamir/orgs","repos_url":"https://api.github.com/users/asyariamir/repos","events_url":"https://api.github.com/users/asyariamir/events{/privacy}","received_events_url":"https://api.github.com/users/asyariamir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T12:46:45Z","updated_at":"2015-10-29T14:11:23Z","closed_at":null,"body":"#!/bin/bash \r\n# Detect motion on PiFace and play scary video.\r\n\r\n# Define PiFace Pins\r\nMotionPin=207 \r\nTriggerPin=200 \r\nVolUpPin=201 \r\nVolDownPin=202 \r\nModePin=203\r\n\r\nVolume=1500\r\nVolstep=50 \r\nCurrentState=0 \r\nCurrentMode=0\r\n\r\nDoFlip=\"\" \r\n# If you need to flip the video upside down, uncomment the following line\r\n# DoFlip=\"--orientation 180\" \r\n\r\n# Assign numbered videos to one of three video modes. Also define the order in which the videos appear\r\nVidMode=0 # 0=Not Scary, 1=Scary, 2=Extra Long \r\nVidOrder[0]=\"14 30 46 62\" \r\nVidOrder[1]=\"12 32 44 64 16 28 48 60\" \r\nVidOrder[2]=\"6 22 38 54\" \r\nPriorVid=$VidMode \r\n\r\n# Use piface internal pullup resistors on tactile button pins \r\ngpio -p mode $TriggerPin up \r\ngpio -p mode $VolUpPin up \r\ngpio -p mode $VolDownPin up \r\ngpio -p mode $ModePin up </p><p># Main Program Loop \r\nclear\r\nwhile : ; do \r\n  for i in ${VidOrder[$VidMode]}; do \r\n    if [ $VidMode -ne $PriorVid ] ; then echo -ne \"Video Set $VidMode\\r\" ; PriorVid=$VidMode; break ; fi \r\n    while : ; do \r\n      PriorState=$CurrentState \r\n      PriorVolume=$Volume \r\n      PriorMode=$CurrentMode \r\n      let \"CurrentState=(! `gpio -p read $TriggerPin`) | (`gpio -p read $MotionPin`)\" \r\n      let \"Volume += ( (! `gpio -p read $VolUpPin`) - (! `gpio -p read $VolDownPin`) )* $Volstep\" \r\n      let \"CurrentMode=(! `gpio -p read $ModePin`)\" \r\n      if [ $Volume -ne $PriorVolume ] ; then echo -ne \"$Volume\\r\" ; fi \r\n      if [ $CurrentMode -gt $PriorMode ] ; then let \"VidMode = ($VidMode + 1) % 3\"; break ; fi \r\n      if [ $CurrentState -gt $PriorState ] ; then \r\n        omxplayer -b --vol $Volume $DoFlip ./Video/$i.mp4 >> /dev/null \r\n        clear \r\n        break \r\n      fi \r\n    done \r\n  done\r\ndone"},"comment":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/comments/152192570","html_url":"https://github.com/koalaman/shellcheck/issues/530#issuecomment-152192570","issue_url":"https://api.github.com/repos/koalaman/shellcheck/issues/530","id":152192570,"user":{"login":"asyariamir","id":15379855,"avatar_url":"https://avatars.githubusercontent.com/u/15379855?v=3","gravatar_id":"","url":"https://api.github.com/users/asyariamir","html_url":"https://github.com/asyariamir","followers_url":"https://api.github.com/users/asyariamir/followers","following_url":"https://api.github.com/users/asyariamir/following{/other_user}","gists_url":"https://api.github.com/users/asyariamir/gists{/gist_id}","starred_url":"https://api.github.com/users/asyariamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asyariamir/subscriptions","organizations_url":"https://api.github.com/users/asyariamir/orgs","repos_url":"https://api.github.com/users/asyariamir/repos","events_url":"https://api.github.com/users/asyariamir/events{/privacy}","received_events_url":"https://api.github.com/users/asyariamir/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:11:22Z","updated_at":"2015-10-29T14:11:22Z","body":"@brother I'm sorry, I'm quite new to this and I'm using a ready made code. So, I am to wrap which text to make a code block?"}}