From f6c1cab28a3b0128a458974387941e17c6617f8d Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Wed, 6 Nov 2019 14:13:33 +0000 Subject: [PATCH] Have nwipe continue with following devices even if one fails --- src/device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 9244fad..5dac189 100644 --- a/src/device.c +++ b/src/device.c @@ -90,7 +90,10 @@ int nwipe_device_get( nwipe_context_t*** c, char **devnamelist, int ndevnames ) dev = ped_device_get(devnamelist[i]); if (!dev) - break; + { + nwipe_log( NWIPE_LOG_WARNING, "Device %s not found", devnamelist[i] ); + continue; + } if (check_device(c, dev, dcount)) dcount++;