提交 1d8d9573 编写于 作者: Y Yu Yang

Add `set -e` for paddle boot up script.

* error when paddle has a wrong version number.
上级 fc32721f
...@@ -29,6 +29,7 @@ function version(){ ...@@ -29,6 +29,7 @@ function version(){
} }
function ver2num() { function ver2num() {
set -e
# convert version to number. # convert version to number.
if [ -z "$1" ]; then # empty argument if [ -z "$1" ]; then # empty argument
printf "%03d%03d%03d%03d%03d" 0 printf "%03d%03d%03d%03d%03d" 0
...@@ -41,6 +42,7 @@ function ver2num() { ...@@ -41,6 +42,7 @@ function ver2num() {
printf "%03d%03d%03d%03d%03d" $VERN printf "%03d%03d%03d%03d%03d" $VERN
fi fi
fi fi
set +e
} }
PADDLE_CONF_HOME="$HOME/.config/paddle" PADDLE_CONF_HOME="$HOME/.config/paddle"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册