mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-02 11:55:23 +00:00
add copy option
This commit is contained in:
@@ -87,3 +87,12 @@ func CheckIfVolumeExists(volume string) bool {
|
||||
_, _, err := ExecuteCommand(ExecuteOptions{Command: "docker"}, "volume", "inspect", volume)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func ArrayContains[T comparable](arr []T, needle T) bool {
|
||||
for _, item := range arr {
|
||||
if item == needle {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user