您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

18 行
354 B

  1. #!/bin/bash
  2. # This loops the upload-one script while the RUN file exists.
  3. # See upload-one for details.
  4. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  5. while [[ -f RUN ]]
  6. do
  7. "${SCRIPT_DIR}/upload-one"
  8. result="${?}"
  9. if [[ "${result}" -ne 0 ]]
  10. then
  11. date
  12. echo "uploader exited with ${result}"
  13. exit "${result}"
  14. fi
  15. done