diff --git a/crawl.sh b/crawl.sh index 9bf92af6b..373e0307b 100755 --- a/crawl.sh +++ b/crawl.sh @@ -2,7 +2,7 @@ set -euxo pipefail -path=$(pwd)/$(printf "%s/" "$@") +path=$(pwd)/gcloud/$(printf "%s/" "$@") mkdir -p $path if [[ $# -eq 0 ]] ; then diff --git a/main.go b/main.go index bfcb48512..8ff4f2efb 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,8 @@ func main() { incommands = true continue } - if strings.Contains(txt, "NOTES") { + if strings.Contains(txt, "NOTES") || + strings.Contains(txt, "AVAILABLE") { break } if strings.Contains(txt, " ") {