mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
dev
This commit is contained in:
parent
d1c80225f2
commit
7c0bba4bfb
|
@ -48,6 +48,7 @@ combine_one () {
|
|||
|
||||
## 选择python3还是node
|
||||
define_program () {
|
||||
local p1=$1
|
||||
[[ $p1 == *.js ]] && which_program="node"
|
||||
[[ $p1 == *.py ]] && which_program="python3"
|
||||
}
|
||||
|
@ -113,7 +114,7 @@ run_normal () {
|
|||
if [ -f $p1 ]; then
|
||||
import_config_and_check "$p1"
|
||||
update_crontab
|
||||
define_program
|
||||
define_program "$p1"
|
||||
combine_all
|
||||
[[ $# -eq 1 ]] && random_delay
|
||||
log_time=$(date "+%Y-%m-%d-%H-%M-%S")
|
||||
|
|
Loading…
Reference in New Issue
Block a user