Skip to content

Commit

Permalink
Fix ubuntu 24.04 pwsh setup [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored Oct 21, 2024
1 parent 5d9b18d commit dd3207b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 1k/install-pwsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkdir -p $cacheDir

pwsh_ver=$1
if [ "$pwsh_ver" = "" ] ; then
pwsh_ver='7.4.4'
pwsh_ver='7.4.5'
fi

pwsh_min_ver=$2
Expand Down Expand Up @@ -64,8 +64,8 @@ elif [ $HOST_OS = 'Linux' ] ; then
curl -L "https://github.com/PowerShell/PowerShell/releases/download/v$pwsh_ver/$pwsh_pkg" -o "$pwsh_pkg_out"
fi
sudo_cmd=$(which sudo)
$sudo_cmd dpkg -i "$pwsh_pkg_out"
$sudo_cmd apt-get install -f
$sudo_cmd dpkg -i --ignore-depends=libicu72 "$pwsh_pkg_out"
$sudo_cmd apt-get install -f powershell
elif command -v pacman > /dev/null; then # Linux distro: Arch
# refer: https://ephos.github.io/posts/2018-9-17-Pwsh-ArchLinux
# available pwsh version, refer to: https://aur.archlinux.org/packages/powershell-bin
Expand Down

0 comments on commit dd3207b

Please sign in to comment.