Skip to content

Commit eec1830

Browse files
committed
Fix linux setup unzip fail
1 parent bdf1da2 commit eec1830

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

1k/1kiss.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,8 +1197,16 @@ function setup_unzip() {
11971197
if ($IsWin) { return }
11981198
$unzip_cmd_info = Get-Command 'unzip' -ErrorAction SilentlyContinue
11991199
if (!$unzip_cmd_info) {
1200-
elseif ($IsLinux) {
1201-
if ($(which dpkg)) { sudo apt install unzip }
1200+
if ($IsLinux) {
1201+
if ($(which dpkg)) {
1202+
sudo apt install unzip
1203+
}
1204+
elseif($(which pacman)) {
1205+
sudo pacman -S --needed --noconfirm unzip
1206+
}
1207+
else {
1208+
Write-Warning 'Current linux distro is not official supported'
1209+
}
12021210
}
12031211
elseif ($IsMacOS) {
12041212
brew install unzip

0 commit comments

Comments
 (0)