From b31a60da9c503d1bcd3122ba9e5f5557be853cfb Mon Sep 17 00:00:00 2001 From: voc Date: Mon, 14 Mar 2016 20:40:01 +0100 Subject: add shebang to cycle-script and immunize against cwd --- example-scripts/control-server/demo-cycle-modes.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example-scripts') diff --git a/example-scripts/control-server/demo-cycle-modes.sh b/example-scripts/control-server/demo-cycle-modes.sh index b626b28..7440cf1 100755 --- a/example-scripts/control-server/demo-cycle-modes.sh +++ b/example-scripts/control-server/demo-cycle-modes.sh @@ -1,3 +1,6 @@ +#!/bin/bash +cd "$(dirname ${BASH_SOURCE[0]})" + while true; do sleep 10 echo "composite-picture-in-picture" -- cgit v1.2.3