X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jenkins-init-scripts%2Fcreate-jenkins-user.sh;h=bde227cb0eaf8b7017141c6a62e2e2bb0617e851;hb=49efd0f40506f156d007e536f2f97d7dd8c53b37;hp=e1e0b1ec81b6a7036638d1a0c65de046b4097c3e;hpb=af89ef784234e7b89984d5b2995fc6d29b6d8c34;p=releng%2Fglobal-jjb.git diff --git a/jenkins-init-scripts/create-jenkins-user.sh b/jenkins-init-scripts/create-jenkins-user.sh index e1e0b1ec..bde227cb 100755 --- a/jenkins-init-scripts/create-jenkins-user.sh +++ b/jenkins-init-scripts/create-jenkins-user.sh @@ -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