Build wails with error
Closed this issue · 3 comments
suculent commented
[shell] > /opt/thinx/thinx-device-api/builder: line 23: syntax error: bad function name
In services/worker/builder.sh:23:
Lines 19-28:
set +e
# Swarm Support
random-string()
{
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}
NODE_ID=$(docker info -f {{.Swarm.NodeID}})
Is it the function definition in sh?
suculent commented
The - removed from function name, not compatible with a/sh
suculent commented
Fixed in other functions as well, rewritten prebuild to JS, fixed refactoring...