Skip to content

Commit

Permalink
Bug Fix: install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iewnfod committed Oct 20, 2023
1 parent 9935c6c commit 21a5d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ current_dir=$(cd $(dirname $0); pwd)
content="export PATH=${current_dir}/bin:\$PATH"
fish_content="set -x PATH \"${current_dir}/bin\" \$PATH"
# 如果已经可以用 cpc 了,那就不用重新写入了
if type cpc >/dev/null 2>&1; then
if ! type cpc >/dev/null 2>&1; then
# 写入 bash_profile 文件
if type bash >/dev/null 2>&1; then
echo "" >> ~/.bash_profile # 换行
Expand Down

0 comments on commit 21a5d29

Please sign in to comment.