Skip to content

Commit

Permalink
shell变量读取应该加$符号 (#3890)
Browse files Browse the repository at this point in the history
* shell变量读取应该加$符号

* shell变量读取应该加

Co-authored-by: Jared Tan <jian.tan@daocloud.io>
  • Loading branch information
reganhexx and JaredTan95 authored Aug 26, 2021
1 parent aa9b7eb commit 1615dfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Release Notes.
Apollo 1.10.0

------------------

* [Bump version to 1.10.0](https://github.com/ctripcorp/apollo/pull/3917)
* [Fix issue that the $ symbol is not used when reading shell variables](https://github.com/ctripcorp/apollo/pull/3890)

------------------
All issues and pull requests are [here](https://github.com/ctripcorp/apollo/milestone/8?closed=1)
Expand Down
2 changes: 1 addition & 1 deletion apollo-adminservice/src/main/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ do
fi
done

if [[ ! -f PATH_TO_JAR && -d current ]]; then
if [[ ! -f $PATH_TO_JAR && -d current ]]; then
cd current
for i in `ls $SERVICE_NAME-*.jar 2>/dev/null`
do
Expand Down
2 changes: 1 addition & 1 deletion apollo-configservice/src/main/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ do
fi
done

if [[ ! -f PATH_TO_JAR && -d current ]]; then
if [[ ! -f $PATH_TO_JAR && -d current ]]; then
cd current
for i in `ls $SERVICE_NAME-*.jar 2>/dev/null`
do
Expand Down
2 changes: 1 addition & 1 deletion apollo-portal/src/main/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ do
fi
done

if [[ ! -f PATH_TO_JAR && -d current ]]; then
if [[ ! -f $PATH_TO_JAR && -d current ]]; then
cd current
for i in `ls $SERVICE_NAME-*.jar 2>/dev/null`
do
Expand Down

0 comments on commit 1615dfe

Please sign in to comment.