Skip to content

Commit c539231

Browse files
committed
fix(installer): 添加pwsh安装前检查避免重复安装
如果pwsh已安装则跳过安装步骤,避免重复安装
1 parent cae2129 commit c539231

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

linux/ubuntu/installer/install_pwsh.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
# 判断pwsh是否已安装
4+
if command -v pwsh &> /dev/null
5+
then
6+
echo "pwsh found, skip install"
7+
exit 0
8+
fi
39

410
###################################
511
# Prerequisites

0 commit comments

Comments
 (0)