Waits in case envsubst takes a second to finish

This commit is contained in:
Aaron Louie 2020-05-23 15:46:06 -04:00
parent 42b1fcd02c
commit a79515caa6
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ if [[ -z $3 ]]; then
# Execute all other commands with parameters
exit 0
else
# Wait a second in case envsubst needs more time
sleep 1
sed -i -e 's@<base href\=\"\/\">@<base href\=\"'"$BASE_HREF"'\">@' "$3"
# Execute all other commands with parameters