#!/usr/bin/env bash
set -e
source .config/build
source $SCRIPTS_FOLDER/util.sh

# replace @ASSET_HASH in files of the following folder
egrep -lRZ "@ASSET_HASH" $ASSET_HASH_TEMPLATE_REPLACE_PATH  | xargs --null sed -i "s/@ASSET_HASH/$ASSET_HASH/g"

callRecipeEvent $RECIPE "build.post"

exit 0
#!/usr/bin/env bash
set -e
source .config/build
source $SCRIPTS_FOLDER/util.sh

# replace @ASSET_HASH in files of the following folder
if [ ! -z $ASSET_HASH_TEMPLATE_REPLACE_PATH ]; then
    egrep -lRZ "@ASSET_HASH" $ASSET_HASH_TEMPLATE_REPLACE_PATH | xargs --null sed -i "s/@ASSET_HASH/$ASSET_HASH/g"
fi

callRecipeEvent $RECIPE "build.post"

exit 0
Check asset hash template replace path
Check asset hash template replace path

Otherwise it will fail if replace path is not used in project.
