mirror of
https://github.com/moby/buildkit.git
synced 2025-04-18 18:04:03 +03:00
18 lines
492 B
Go
18 lines
492 B
Go
//go:build !windows
|
|
|
|
package shell
|
|
|
|
// EqualEnvKeys compare two strings and returns true if they are equal.
|
|
// On Unix this comparison is case-sensitive.
|
|
// On Windows this comparison is case-insensitive.
|
|
func EqualEnvKeys(from, to string) bool {
|
|
return from == to
|
|
}
|
|
|
|
// NormalizeEnvKey returns the key in a normalized form that can be used
|
|
// for comparison. On Unix this is a no-op. On Windows this converts the
|
|
// key to uppercase.
|
|
func NormalizeEnvKey(key string) string {
|
|
return key
|
|
}
|