Install.sh 604 B

1234567891011121314151617
  1. #!/bin/bash
  2. # bash Install.sh
  3. ItemURL="https://raw.githubusercontent.com/MoeClub/Note/master/ffmpeg/"
  4. FileList=("upload.sh" "publish.sh" "media.sh" "m3u8.sh" "Player/Player.html" "Player/Player.py" "Player/static/css/video-js.min.css" "Player/static/js/video.min.js" "Player/static/js/videojs.hotkeys.min.js")
  5. for Item in "${FileList[@]}"; do
  6. echo "Download ${Item} ..."
  7. echo "${Item}" |grep -q "/"
  8. [ $? -eq 0 ] && mkdir -p "$(dirname ${Item})"
  9. wget --no-check-certificate --no-cache -qO "${Item}" "${ItemURL}${Item}"
  10. chmod 755 "${Item}"
  11. done
  12. mkdir -p "Player/data"
  13. chmod 755 "Player/data"