6060
6161CWD=` pwd`
6262DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
63- INSTALL_DIR=` dirname $DIR `
63+ INSTALL_DIR=$( dirname $DIR )
6464SOURCE_PATH=$INSTALL_DIR /src
6565DIST_PATH=$INSTALL_DIR /dist
6666
@@ -97,20 +97,20 @@ curl --silent -L \
9797 " https://github.com/awslabs/amazon-ebs-autoscale/archive/${EBS_AUTOSCALE_VERSION} .tar.gz" \
9898 -o ./amazon-ebs-autoscale.tar.gz
9999
100- echo " copying ` tar -tzf ./amazon-ebs-autoscale.tar.gz | wc -l` files from ebs-autoscale $EBS_AUTOSCALE_VERSION into tmp/amazon-ebs-autoscale/"
100+ echo " copying $( tar -tzf ./amazon-ebs-autoscale.tar.gz | wc -l) files from ebs-autoscale $EBS_AUTOSCALE_VERSION into tmp/amazon-ebs-autoscale/"
101101tar $VERBOSE -xzf ./amazon-ebs-autoscale.tar.gz
102102mv ./amazon-ebs-autoscale* / ./amazon-ebs-autoscale
103103echo $EBS_AUTOSCALE_VERSION > ./amazon-ebs-autoscale/VERSION
104104
105- echo " copying src/ebs-autoscale with ` find $SOURCE_PATH /ebs-autoscale/ -type f | wc -l` files to tmp/"
105+ echo " copying src/ebs-autoscale with $( find $SOURCE_PATH /ebs-autoscale/ -type f | wc -l) files to tmp/"
106106cp $VERBOSE -Rf $SOURCE_PATH /ebs-autoscale .
107- echo " copying ` find amazon-ebs-autoscale -type f | wc -l` files from tmp/amazon-ebs-autoscale/ to tmp/ebs-autoscale/"
107+ echo " copying $( find amazon-ebs-autoscale -type f | wc -l) files from tmp/amazon-ebs-autoscale/ to tmp/ebs-autoscale/"
108108cp $VERBOSE -Rf ./amazon-ebs-autoscale/* ./ebs-autoscale/
109- echo " creating artifacts/aws-ebs-autoscale.tgz with ` find ./ebs-autoscale/ -type f | wc -l` files from tmp/ebs-autoscale/"
109+ echo " creating artifacts/aws-ebs-autoscale.tgz with $( find ./ebs-autoscale/ -type f | wc -l) files from tmp/ebs-autoscale/"
110110tar $VERBOSE -czf $ARTIFACT_PATH /aws-ebs-autoscale.tgz ./ebs-autoscale/
111111
112112# add a copy of the release tarball for naming consistency
113- echo " creating artifacts/amazon-ebs-autoscale.tgz with ` find ./amazon-ebs-autoscale/ -type f | wc -l` files from tmp/amazon-ebs-autoscale/"
113+ echo " creating artifacts/amazon-ebs-autoscale.tgz with $( find ./amazon-ebs-autoscale/ -type f | wc -l) files from tmp/amazon-ebs-autoscale/"
114114tar $VERBOSE -czf $ARTIFACT_PATH /amazon-ebs-autoscale.tgz ./amazon-ebs-autoscale
115115
116116# add a retrieval script
@@ -126,7 +126,7 @@ for fn in `ls .`; do
126126 cd $TEMP_PATH /lambda/$fn
127127 [ -z $VERBOSE ] && P_QUIET=' --quiet' || P_QUIET=' '
128128 pip $P_QUIET install -t . -r requirements.txt
129- echo " creating artifacts/lambda-${fn} .zip with ` find . -type f | wc -l` files"
129+ echo " creating artifacts/lambda-${fn} .zip with $( find . -type f | wc -l) files"
130130 [ -z $VERBOSE ] && Z_QUIET=' -q' || Z_QUIET=' '
131131 zip $Z_QUIET -r $ARTIFACT_PATH /lambda-$fn .zip .
132132done
@@ -151,13 +151,13 @@ zip $Z_QUIET -r $ARTIFACT_PATH/aws-ecs-additions.zip ./*
151151
152152
153153# package container code
154- echo " packaging container definitions with ` find $SOURCE_PATH /containers -type f | wc -l` files"
154+ echo " packaging container definitions with $( find $SOURCE_PATH /containers -type f | wc -l) files"
155155cd $SOURCE_PATH /containers
156156zip $Z_QUIET -r $ARTIFACT_PATH /containers.zip ./*
157157
158158
159159# add templates to dist
160- echo " copying ` find $SOURCE_PATH /templates/ -type f | wc -l` cloudformation templates"
160+ echo " copying $( find $SOURCE_PATH /templates/ -type f | wc -l) cloudformation templates"
161161cp $VERBOSE -R $SOURCE_PATH /templates/. $TEMPLATES_PATH
162162
163163
0 commit comments