Experimental script to automatically deploy test instance for each proposed PR.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

6 lines
170 B

  1. #!/bin/bash
  2. id=$(basename "$REQUEST_URI")
  3. [[ ! $id =~ ^[0-9]+$ ]] && echo bad query && exit 1
  4. [[ ! -f logs/$id ]] && echo no logs available && exit 1
  5. tail -fn+1 logs/$id