Skip to content

Commit 4a8c5b3

Browse files
authored
fix: onex.sh grep pattern string matching error
修复grep 模式匹配与文件中关键字不一致导致的重复设置问题
1 parent 449641b commit 4a8c5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/installation/onex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ onex::onex::prepare()
251251
# 2. 配置 $HOME/.bashrc 添加一些便捷入口
252252
if ! grep -q 'Alias for onex quick access' $HOME/.bashrc; then
253253
cat << 'EOF' >> $HOME/.bashrc
254-
# Alias and environments for onex quick access
254+
# Alias for onex quick access
255255
export GOSRC="$WORKSPACE/golang/src"
256256
# OneX project root directory, used in many places.
257257
export ONEX_ROOT="$GOSRC/github.com/superproj/onex"

0 commit comments

Comments
 (0)