File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 4
4
signalfile=$1
5
5
6
6
function orchestratorLog() {
7
- now=` date -u +" %Y-%m-%dT%H:%M:%SZ" `
8
- echo -e " [$now | Orchestrator | INFO] $1 "
7
+ now=$( date -u +" %Y-%m-%dT%H:%M:%SZ" )
8
+ echo -e " [$now | Orchestrator | INFO] $1 "
9
9
}
10
10
11
11
function waitForSeconds() {
12
- wait=$1
13
- orchestratorLog " Waiting ${wait} seconds"
14
- sleep $wait
12
+ wait=$1
13
+ orchestratorLog " Waiting ${wait} seconds"
14
+ sleep $wait
15
15
}
16
16
17
17
orchestratorLog " Orchestrator Started"
@@ -28,12 +28,12 @@ pushd scenarios
28
28
waitForSeconds 60
29
29
30
30
pushd industrial/gpsExample
31
- ./gpsExample.sh
31
+ ./gpsExample.sh
32
32
popd
33
33
waitForSeconds 60
34
34
35
35
pushd industrial/salesSystem
36
- ./salesSystem.sh
36
+ ./salesSystem.sh
37
37
popd
38
38
waitForSeconds 60
39
39
@@ -64,12 +64,11 @@ orchestratorLog "Scenario execution complete."
64
64
# orchestratorLog "Retrieving all blocks from the blockchain."
65
65
# ./getAllBlocks.sh
66
66
67
- if [ -z " ${signalfile} " ];
68
- then
69
- orchestratorLog " No signal file defined."
67
+ if [ -z " ${signalfile} " ]; then
68
+ orchestratorLog " No signal file defined."
70
69
else
71
- orchestratorLog " Touching signal file ${signalfile} "
72
- touch ${signalfile}
70
+ orchestratorLog " Touching signal file ${signalfile} "
71
+ touch ${signalfile}
73
72
fi
74
73
75
74
orchestratorLog " Done."
You can’t perform that action at this time.
0 commit comments