mirror of
https://github.com/restic/restic.git
synced 2026-10-17 23:18:12 +00:00
Run tests on GitHub Actions
This commit is contained in:
1 parent
275f713211
commit
5cf42884c8
2 files changed
+245
-2
No files matched your search
@@ -32,9 +32,9 @@ func getStringVar(name, defaultValue string) string {
|
||||
func getBoolVar(name string, defaultValue bool) bool {
|
||||
if e := os.Getenv(name); e != "" {
|
||||
switch e {
|
||||
case "1":
|
||||
case "1", "true":
|
||||
return true
|
||||
case "0":
|
||||
case "0", "false":
|
||||
return false
|
||||
default:
|
||||
fmt.Fprintf(os.Stderr, "invalid value for variable %q, using default\n", name)
|
||||
|
||||
Reference in new issue
Block a user