Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
blob: 5d8ce4f7fa47d51257c697618479d36349a8e7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

mypath="$( dirname $0 )"
cmd="$mypath/showscene"
getnext="$mypath/getval _scene"

scene="$( $getnext )"
if [ ! "$scene" ]; then
    scene='start'
fi

while [ "$scene" ]; do
    $cmd $scene

    # if the scene stated that we should end, then we should probably end
    if [ $? -eq 100 ]; then
        exit
    fi

    scene="$( $getnext )"
done