aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/control-server
diff options
context:
space:
mode:
authorvoc <git@mazdermind.de>2016-03-14 20:40:01 +0100
committervoc <git@mazdermind.de>2016-03-14 20:40:01 +0100
commitb31a60da9c503d1bcd3122ba9e5f5557be853cfb (patch)
tree7c7e82389a916807b799ca028f0142df8a8221be /example-scripts/control-server
parentb242c52adf5e4141702669f2b922397e9caef577 (diff)
add shebang to cycle-script and immunize against cwd
Diffstat (limited to 'example-scripts/control-server')
-rwxr-xr-xexample-scripts/control-server/demo-cycle-modes.sh3
1 files changed, 3 insertions, 0 deletions
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"