Github bot : script beautyshied

This commit is contained in:
github-actions
2022-11-13 00:13:58 +00:00
parent c73bafbfc5
commit 6236af0e3b
4 changed files with 16 additions and 16 deletions

View File

@@ -114,9 +114,9 @@ while IFS= read -r line; do
sed -i "1a export $line" /scripts/*run* 2>/dev/null || true
# export on python
if command -v "python3" &>/dev/null; then
[ ! -f /env.py ] && echo "import os" > /env.py
echo "os.environ['${line%%=*}'] = '${line#*=}'" >> /env.py
python3 /env.py
[ ! -f /env.py ] && echo "import os" > /env.py
echo "os.environ['${line%%=*}'] = '${line#*=}'" >> /env.py
python3 /env.py
fi
# set .env
echo "$line" >> /.env || true