From 1c88fb4cda5fb47825675f004db5a9f548b4aa4f Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:56:42 +0100 Subject: [PATCH] [Ubuntu] pin powershell-core version (#6611) --- images/linux/scripts/installers/powershellcore.sh | 6 +++++- images/linux/toolsets/toolset-1804.json | 3 +++ images/linux/toolsets/toolset-2004.json | 3 +++ images/linux/toolsets/toolset-2204.json | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/powershellcore.sh b/images/linux/scripts/installers/powershellcore.sh index e228d9121..4b4f206c0 100644 --- a/images/linux/scripts/installers/powershellcore.sh +++ b/images/linux/scripts/installers/powershellcore.sh @@ -4,5 +4,9 @@ ## Desc: Installs powershellcore ################################################################################ +source $HELPER_SCRIPTS/install.sh + +pwshversion=$(get_toolset_value .pwsh.version) + # Install Powershell -apt-get install -y powershell +apt-get install -y powershell=$pwshversion* diff --git a/images/linux/toolsets/toolset-1804.json b/images/linux/toolsets/toolset-1804.json index e7be1221b..d27be16d1 100644 --- a/images/linux/toolsets/toolset-1804.json +++ b/images/linux/toolsets/toolset-1804.json @@ -362,5 +362,8 @@ }, "postgresql": { "version": "14" + }, + "pwsh": { + "version": "7.2" } } diff --git a/images/linux/toolsets/toolset-2004.json b/images/linux/toolsets/toolset-2004.json index ac6ec86fe..8c71c541d 100644 --- a/images/linux/toolsets/toolset-2004.json +++ b/images/linux/toolsets/toolset-2004.json @@ -370,5 +370,8 @@ }, "postgresql": { "version": "14" + }, + "pwsh": { + "version": "7.2" } } diff --git a/images/linux/toolsets/toolset-2204.json b/images/linux/toolsets/toolset-2204.json index 56d10d2d3..76c9e6851 100644 --- a/images/linux/toolsets/toolset-2204.json +++ b/images/linux/toolsets/toolset-2204.json @@ -344,5 +344,8 @@ }, "postgresql": { "version": "14" + }, + "pwsh": { + "version": "7.2" } }