[ubuntu] fix: correct variable to print only tool name (#3767)

it was broken in #3701
This commit is contained in:
Ryan
2021-07-21 11:58:59 +00:00
committed by GitHub
parent 9db2160d1e
commit 09920886d1

View File

@@ -50,5 +50,5 @@ foreach ($tool in $tools) {
exit 1
}
}
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/$tool
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" "/opt/hostedtoolcache/$($tool.name)"
}