/usr/local/bin to path

This commit is contained in:
zhangkun9038@dingtalk.com 2023-02-28 23:55:11 +08:00
parent eb4afd243a
commit 20686bd292
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
fileName=$1 fileName=$1
projectPath=$2 projectPath=$2
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin:/usr/local/bin
basePath=$3 basePath=$3
if [ ! -d $basePath ]; then if [ ! -d $basePath ]; then

View File

@ -12,7 +12,7 @@ ossLogPath=$5
preName="${fileName%.*}" preName="${fileName%.*}"
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin:/usr/local/bin
if [ ! -d $workPath ]; then if [ ! -d $workPath ]; then
echo workPath $workPath not exist! echo workPath $workPath not exist!

View File

@ -2,7 +2,7 @@
#usage: #usage:
# ./ossUpgrade.sh "stage/ztsjxxxt/frontEnd/" html.zip ztsjxxxt # ./ossUpgrade.sh "stage/ztsjxxxt/frontEnd/" html.zip ztsjxxxt
# set -xt # set -xt
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin:/usr/local/bin
ossPath=$1 #末尾别忘了加/ ossPath=$1 #末尾别忘了加/
fileName=$2 fileName=$2
projectName="${fileName%.*}" projectName="${fileName%.*}"