You've already forked hotpocket
This commit is contained in:
10
services/base/ops/bin/wait-for-yarn-env.sh
Executable file
10
services/base/ops/bin/wait-for-yarn-env.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -z "${YARN_MODULES_FOLDER}" ];then
|
||||
echo "Waiting for yarn env... "
|
||||
yarn --modules-folder /srv/node_modules/ run eslint --help >/dev/null 2>&1
|
||||
while [ $? -ne 0 ];do
|
||||
yarn --modules-folder /srv/node_modules/ run eslint --help >/dev/null 2>&1
|
||||
done
|
||||
echo "yarn env is ready"
|
||||
fi
|
||||
Reference in New Issue
Block a user