hotpocket/services/base/ops/bin/wait-for-yarn-env.sh
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

11 lines
320 B
Bash
Executable File

#!/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