21 lines
267 B
Go
21 lines
267 B
Go
|
//go:build !gokrazy
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"flag"
|
||
|
"log"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
flag.Parse()
|
||
|
if os.Getenv("GCD_USERNAME") == "" || os.Getenv("GCD_PASSWORD") == "" {
|
||
|
log.Println("Username and password not provided")
|
||
|
os.Exit(0)
|
||
|
}
|
||
|
|
||
|
createDirs()
|
||
|
|
||
|
downlod()
|
||
|
}
|