aws-samples / aws-iot-kickstart

Connect and deploy IoT devices on AWS IoT Core in minutes and start generating immediate business value!
Apache License 2.0
21 stars 17 forks source link

Make it possible to build on Linux #1

Open vteremasov opened 4 years ago

vteremasov commented 4 years ago

Bug It's not possible to build on Linux When I run ./build.sh s3-for-kickiot v1.0.0 I get:

------------------------------------------------------------------------------
[Dependencies]
jq version: jq-1.6
yarn version: 1.19.2
------------------------------------------------------------------------------

00-cleanup.sh-----------------------------------------------------------------
[Init] Clean old dist and old website dir
rm -rf /*/aws-iot-kickstart/deployment/dist
mkdir -p /*/aws-iot-kickstart/deployment/dist
------------------------------------------------------------------------------

01-prepare-cf.sh--------------------------------------------------------------
[Packing] Cloud formation template

Removing old /*/aws-iot-kickstart/deployment/dist/cf dir (rm -rf /*/aws-iot-kickstart/deployment/dist/cf)
Copying CF folder accross (cp -R /*/aws-iot-kickstart/deployment/../source/cf /*/aws-iot-kickstart/deployment/dist)
Updating code source bucket in templates with s3-for-kickiot and code source version in template with v1.0.0
sed -i '' -e s/%%BUCKET_NAME%%/s3-for-kickiot/g /*/aws-iot-kickstart/deployment/dist/cf/*.yml
sed: can't read : No such file or directory