Fix ShellCheck issues in jenkins-scripts
[releng/builder.git] / jenkins-scripts / jenkins-init-script.sh
index efb8b1a79733a57fb878c801b71d453e9ddc6053..fc55c89c747ad77f3d8bc4763a3e5e9116fcfd63 100755 (executable)
@@ -9,13 +9,14 @@
 # http://www.eclipse.org/legal/epl-v10.html
 ##############################################################################
 
-cd /builder/jenkins-scripts
-chmod +x *.sh
+cd /builder/jenkins-scripts || exit 404
+chmod +x -- *.sh
 ./system_type.sh
 
+# shellcheck disable=SC1091
 source /tmp/system_type.sh
 ./basic_settings.sh
-./${SYSTEM_TYPE}.sh
+"./${SYSTEM_TYPE}.sh"
 
 # Create the jenkins user last so that hopefully we don't have to deal with
 # guard files