From e9493a997d5a568161d8ddd693f3beff17337e10 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Wed, 28 Oct 2020 11:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- install.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7522176..efbbcfc 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,22 @@ support **CentOS 6+/Debian 8+/Ubuntu 14+** ## Install without compile(recommend) ``` -bash <(curl -sL https://python3.netlify.app/install.sh) +source <(curl -sL https://python3.netlify.app/install.sh) ``` ## Install with compile(latest version) ``` -bash <(curl -sL https://python3.netlify.app/install.sh) --latest +source <(curl -sL https://python3.netlify.app/install.sh) --latest ``` ## Install with compile(special version) ``` -bash <(curl -sL https://python3.netlify.app/install.sh) -v 3.6.5 +source <(curl -sL https://python3.netlify.app/install.sh) -v 3.6.5 ``` ## Only install python3 ``` -bash <(curl -sL https://python3.netlify.app/install.sh) --nopip +source <(curl -sL https://python3.netlify.app/install.sh) --nopip ``` find the special version in [python_version_list](https://www.python.org/ftp/python/), script will auto download and compile it diff --git a/install.sh b/install.sh index 137ef01..6e3bbef 100644 --- a/install.sh +++ b/install.sh @@ -67,7 +67,7 @@ checkSys() { fi # 缺失/usr/local/bin路径时自动添加 - [[ -z `echo $PATH|grep /usr/local/bin` ]] && { echo 'export PATH=$PATH:/usr/local/bin' >> /etc/profile; source /etc/profile; } + [[ -z `echo $PATH|grep /usr/local/bin` ]] && { echo 'export PATH=$PATH:/usr/local/bin' >> /etc/bashrc; source /etc/bashrc; } } commonDependent(){