mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 19:34:58 +01:00
parent
b9933f6cb2
commit
c396f9508a
@ -220,7 +220,7 @@ var batchDestroyFeatureCheck struct {
|
|||||||
func (d destroyerImpl) DestroySnapshotsCommaSyntaxSupported() (bool, error) {
|
func (d destroyerImpl) DestroySnapshotsCommaSyntaxSupported() (bool, error) {
|
||||||
batchDestroyFeatureCheck.once.Do(func() {
|
batchDestroyFeatureCheck.once.Do(func() {
|
||||||
// "feature discovery"
|
// "feature discovery"
|
||||||
cmd := exec.Command("zfs", "destroy")
|
cmd := exec.Command(ZFS_BINARY, "destroy")
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if _, ok := err.(*exec.ExitError); !ok {
|
if _, ok := err.(*exec.ExitError); !ok {
|
||||||
debug("destroy feature check failed: %T %s", err, err)
|
debug("destroy feature check failed: %T %s", err, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user