mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
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>
This commit is contained in:
committed by
mergify[bot]
parent
d6aca0efbb
commit
209ff69a04
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
scriptdir="$(cd "${0%/*}"; pwd)"
|
||||
${scriptdir}/tools/docker/run.sh "$@"
|
||||
scriptdir="$(cd "${0%/*}" || exit 1; pwd)"
|
||||
"${scriptdir}/tools/docker/run.sh" "$@"
|
||||
|
||||
Reference in New Issue
Block a user