From 6cee5c4ef576556ed704b7fbce17fbc4af3383a4 Mon Sep 17 00:00:00 2001 From: Jonathan Zhang Date: Thu, 11 May 2023 10:50:28 -0700 Subject: [PATCH] shellcheck fixes --- modules/ocf_jenkins/files/update-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocf_jenkins/files/update-plugins b/modules/ocf_jenkins/files/update-plugins index f3d6d5c11..90c660ec5 100755 --- a/modules/ocf_jenkins/files/update-plugins +++ b/modules/ocf_jenkins/files/update-plugins @@ -5,7 +5,7 @@ ssh_cmd="ssh -p 2222 -o StrictHostKeyChecking=no -i /opt/jenkins/deploy/ssh_cli # Taken from https://stackoverflow.com/a/25647793 and modified to use SSH # instead of the jenkins-cli jar updates=$($ssh_cmd list-plugins | grep -e ')$' | awk '{ print $1 }'); -if [ ! -z "$updates" ]; then +if [ -n "$updates" ]; then echo "Updating Jenkins Plugins: $updates" $ssh_cmd install-plugin "$updates" echo "Restarting Jenkins..."