yangtb24 commited on
Commit
36eefbc
·
verified ·
1 Parent(s): a90f0c3

Update sync_data.sh

Browse files
Files changed (1) hide show
  1. sync_data.sh +1 -3
sync_data.sh CHANGED
@@ -1,5 +1,3 @@
1
- #!/bin/bash
2
-
3
  # 检查必要的环境变量
4
  if [ -z "$WEBDAV_URL" ] || [ -z "$WEBDAV_USERNAME" ] || [ -z "$WEBDAV_PASSWORD" ]; then
5
  echo "缺少必要的环境变量 WEBDAV_URL、WEBDAV_USERNAME 或 WEBDAV_PASSWORD"
@@ -66,4 +64,4 @@ sync_data() {
66
  }
67
 
68
  # 后台启动同步进程
69
- sync_data &
 
 
 
1
  # 检查必要的环境变量
2
  if [ -z "$WEBDAV_URL" ] || [ -z "$WEBDAV_USERNAME" ] || [ -z "$WEBDAV_PASSWORD" ]; then
3
  echo "缺少必要的环境变量 WEBDAV_URL、WEBDAV_USERNAME 或 WEBDAV_PASSWORD"
 
64
  }
65
 
66
  # 后台启动同步进程
67
+ sync_data &