linux.sh 229 B

123456789101112
  1. #!/bin/bash
  2. if [ ! -d "$TUNASYNC_WORKING_DIR" ]; then
  3. echo "Directory not exists, fail"
  4. exit 1
  5. fi
  6. function update_linux_git() {
  7. cd $TUNASYNC_WORKING_DIR
  8. /usr/bin/timeout -s INT 3600 git remote -v update
  9. }
  10. update_linux_git