Files
prplMesh/docker-runner.sh
Ivan Efimov 209ff69a04 scripts: docker-runner.sh: fix shellcheck issues
shellcheck scan of docker-runner.sh revealed few issues:
Line 3: SC2164 - no check if cd successful
Line 4: SC2086 - missing quotes around scriptdir variable

To resolve:
Line 3: add exit if cd fails
Line 4: add quotes around whole run.sh call

Signed-off-by: Ivan Efimov <i.efimov@inango-systems.com>
2020-04-24 11:51:27 +00:00

5 lines
94 B
Bash
Executable File

#!/bin/sh
scriptdir="$(cd "${0%/*}" || exit 1; pwd)"
"${scriptdir}/tools/docker/run.sh" "$@"