From 6a135e80c732ef43768797cda11ceca33ee77b77 Mon Sep 17 00:00:00 2001 From: reluctantfuturist Date: Wed, 23 Apr 2025 11:39:01 -0700 Subject: [PATCH] chore(ci): refine shellcheck --- .github/workflows/install-script-ci.yml | 3 +++ install.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install-script-ci.yml b/.github/workflows/install-script-ci.yml index 0abd30bb3..130254896 100644 --- a/.github/workflows/install-script-ci.yml +++ b/.github/workflows/install-script-ci.yml @@ -18,6 +18,9 @@ jobs: - name: ShellCheck uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0 + with: + scandir: '.' + additional_files: 'install.sh' smoke-test: needs: lint diff --git a/install.sh b/install.sh index 477e6989f..78c06e841 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ for name in ollama-server llama-stack; do ids=$($ENGINE ps -aq --filter "name=^${name}$") if [ -n "$ids" ]; then log "⚠️ Found existing container(s) for '${name}', removing..." - $ENGINE rm -f $ids + $ENGINE rm -f "$ids" fi done