diff --git a/build.bash b/build.bash index 03d4aa9..690fe9c 100755 --- a/build.bash +++ b/build.bash @@ -1,5 +1,11 @@ #!/bin/bash + +r="$((($RANDOM * $RANDOM) % 5 ))" +echo $r + +if [ "$r" -ne "0" ] ; then echo "error!" && exit; fi + BUILD_TIME=$(date '+%Y-%m-%d %H:%M:%S') mkdir -p build diff --git a/index.js b/index.js index bdb57c3..4381873 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var getFormBody = require('body/form'); var body = require('body'); const BUILD_TIME = '{BUILD_TIME}'; -const VERSION = '1.0.29'; +const VERSION = '1.0.30'; exports.handler = (req, resp, context) => { console.log('hello world'); @@ -14,8 +14,7 @@ exports.handler = (req, resp, context) => { headers: req.headers, method: req.method, requestURI: req.url, - clientIP: req.clientIP, - version: VERSION, + clientIP: req.clientIP, version: VERSION, buildVersion: BUILD_TIME, };