-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.sh
More file actions
30 lines (30 loc) · 952 Bytes
/
main.sh
File metadata and controls
30 lines (30 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
###
# @Author: Fantasy
# @Date: 2020-10-31 19:21:52
# @LastEditors : Please set LastEditors
# @LastEditTime : 2022-11-27 23:13:15
###
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/usr/local/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/usr/local/anaconda3/etc/profile.d/conda.sh" ]; then
. "/usr/local/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/usr/local/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
. /usr/local/anaconda3/etc/profile.d/conda.sh
conda activate safety_report
base_dir="/usr/local/safety_report"
cd "${base_dir}"
echo "开始上报>>>>>>>>>>>>>>>>>>>>>"
date
python main.py
echo "上报结束====================="
conda deactivate
conda deactivate