@whyour/qinglong 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
package/shell/env.sh CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  store_env_vars() {
4
- initial_vars=($(compgen -A variable))
4
+ initial_vars=($(env | cut -d= -f1))
5
5
  }
6
6
 
7
7
  restore_env_vars() {
8
- for key in $(compgen -A variable); do
8
+ for key in $(env | cut -d= -f1); do
9
9
  if ! [[ " ${initial_vars[@]} " =~ " $key " ]]; then
10
10
  unset "$key"
11
11
  fi
package/shell/start.sh CHANGED
@@ -64,6 +64,7 @@ cd ${QL_DIR}
64
64
  cp -f .env.example .env
65
65
  chmod 777 ${QL_DIR}/shell/*.sh
66
66
 
67
+ . $dir_shell/env.sh
67
68
  . ${QL_DIR}/shell/share.sh
68
69
 
69
70
  make_dir /etc/nginx/conf.d
@@ -83,7 +84,6 @@ if [[ "$is_equal_registry" == "" ]]; then
83
84
  cd && pnpm config set registry $NpmMirror
84
85
  pnpm install -g
85
86
  fi
86
- update_depend
87
87
 
88
88
  reload_pm2
89
89