Skip to content

Commit e4c9165

Browse files
committed
Fixed shellcheck issues in setup-cfengine-build-host.sh
Ticket: ENT-13732 Changelog: none
1 parent 6af5d57 commit e4c9165

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ci/setup-cfengine-build-host.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ function cleanup()
5050
pkill -9 cf-execd || true
5151
else
5252
echo "No pkill available. Maybe some cf procs left over?"
53+
# pgrep suggestion is ignored due to wanting POSIX compatability
54+
# shellcheck disable=SC2009
5355
ps -efl | grep cf
5456
fi
5557
ls -l /home
@@ -183,7 +185,7 @@ if ! /var/cfengine/bin/cf-agent -V; then
183185
else
184186
_VERSION=""
185187
fi
186-
cf-remote --log-level info $_VERSION install --clients localhost || true
188+
cf-remote --log-level info "$_VERSION" install --clients localhost || true
187189
fi
188190

189191
if [ ! -x /var/cfengine/bin/cf-agent ]; then

0 commit comments

Comments
 (0)