Merge pull request #645 from reyoung/feature/improve_paddle_version_check

Add `set -e` for paddle boot up script.
avx_docs
wangkuiyi 8 years ago committed by GitHub
commit 765735b698

@ -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() {
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"

Loading…
Cancel
Save