自动bulid kylin cube脚本

#!/bin/bash
cubeName=$1
echo $cubeName

buildType=$2
echo $buildType
#BUILD MERGE REFRESH

startTime=$((date -d $3 +%s*1000)) #$1:20190101 14400000
echo $startTime

endTime=$((date -d $4 +%s*1000))
echo $endTime

curl -X PUT -H “Authorization: Basic password” -H ‘Content-Type: application/json;charset=UTF-8’ -d '{“startTime”:‘ s t a r t T i m e ′ , " e n d T i m e " : ′ startTime',"endTime":' startTime,"endTime":endTime’,“buildType”:"'KaTeX parse error: Expected 'EOF', got '}' at position 12: buildType'"}̲' http://kylin2…cubeName/rebuild

你可能感兴趣的:(开源框架)