Fix OS_CLOUD export for image validation
[releng/global-jjb.git] / jenkins-init-scripts / create-jenkins-user.sh
index e1e0b1e..bde227c 100755 (executable)
@@ -13,6 +13,8 @@ OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
 OS_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]')
 
 if [[ "$OS_RELEASE" == "18.04" && "$OS" == 'ubuntu' ]]; then
+  # We do not want var expansion here as profile script expands at runtime.
+  # shellcheck disable=SC2016
   echo 'export PATH=$HOME/.local/bin:$PATH' >> /etc/profile
 fi