Commit 9898e431 authored by greyby's avatar greyby

使用配置的环境变量目录

parent 08e22606
#!/usr/bin/env bash #!/usr/bin/env bash
. config
if [ -n "$AUTO_LOGIN_HOME" ] ; then if [ -n "$AUTO_LOGIN_HOME" ] ; then
. "$AUTO_LOGIN_HOME/config"
token=$(python "$AUTO_LOGIN_HOME/onetimepass.py") token=$(python "$AUTO_LOGIN_HOME/onetimepass.py")
expectlogin.sh ${username} ${password} ${host} ${token}
else else
echo "AUTO_LOGIN_HOME not config" echo "AUTO_LOGIN_HOME not config"
. config
token=$(python onetimepass.py) token=$(python onetimepass.py)
./expectlogin.sh ${username} ${password} ${host} ${token}
fi fi
\ No newline at end of file
expectlogin.sh ${username} ${password} ${host} ${token}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment