Skip to content

Commit

Permalink
chore(install): 去除移除下载文件 (#93)
Browse files Browse the repository at this point in the history
* chore(install): 去除移除下载文件

由于安装指令的更改(详见https://github.com/fishros/install/pull/91),安装脚本不再储存在本地,因此无需移除以免报错

* fix(install): 判断文件存在情况以决定是否移除
  • Loading branch information
elysia-best authored Jan 11, 2025
1 parent 789413e commit f05ccab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ fi
sudo apt install python3-distro python3-yaml -y
sudo python3 /tmp/fishinstall/install.py
sudo rm -rf /tmp/fishinstall/
sudo rm fishros

if [ -f fishros ]; then
sudo rm fishros
fi

# 初始假设默认是 Bash
shell_name='bash'
Expand Down

0 comments on commit f05ccab

Please sign in to comment.