mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 19:01:02 +00:00
fix shellcheck errors
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
# The rig container is expected to be up with the app running and SNAPORCA_MCP set; bring it up
|
# The rig container is expected to be up with the app running and SNAPORCA_MCP set; bring it up
|
||||||
# with scripts/gui-session.sh inside it. The corpus lives at /corpus in that container.
|
# with scripts/gui-session.sh inside it. The corpus lives at /corpus in that container.
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.." || exit 1
|
||||||
|
|
||||||
C="${C:-snaporca-gui}"
|
C="${C:-snaporca-gui}"
|
||||||
CORPUS="${CORPUS:-/corpus}"
|
CORPUS="${CORPUS:-/corpus}"
|
||||||
@@ -28,6 +28,9 @@ step() {
|
|||||||
if "$@"; then echo "--- $name OK"; else echo "--- $name FAILED"; fail=1; fi
|
if "$@"; then echo "--- $name OK"; else echo "--- $name FAILED"; fail=1; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# SC2329: every call goes through step(), which invokes it via "$@", so shellcheck
|
||||||
|
# cannot see the callers below.
|
||||||
|
# shellcheck disable=SC2329
|
||||||
run_in_rig() { # copy the script in fresh, then run it there
|
run_in_rig() { # copy the script in fresh, then run it there
|
||||||
docker cp "$1" "$C:/tmp/$(basename "$1")" >/dev/null || return 1
|
docker cp "$1" "$C:/tmp/$(basename "$1")" >/dev/null || return 1
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user