X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jenkins-init-scripts%2Fcreate-jenkins-user.sh;h=bde227cb0eaf8b7017141c6a62e2e2bb0617e851;hb=32fc471adb587ff7ee252ebd1b1e6664119185ea;hp=e1e0b1ec81b6a7036638d1a0c65de046b4097c3e;hpb=f50130f8bd687b514716a1300453c9fd70cfca99;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