From 5314f514c5937875537a37aa98225c771fb4abed Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Mon, 22 Apr 2019 09:12:13 +0200 Subject: [PATCH] Print empty disk list for unsupported OS --- cdist/conf/explorer/disks | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cdist/conf/explorer/disks b/cdist/conf/explorer/disks index 51660e13..87a6b5c6 100755 --- a/cdist/conf/explorer/disks +++ b/cdist/conf/explorer/disks @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh uname_s="$(uname -s)" @@ -16,12 +16,12 @@ case "${uname_s}" in # https://www.kernel.org/doc/Documentation/admin-guide/devices.txt lsblk -e 1,2,11 -dno name | xargs else - printf "%s operating system without lsblk is not supported, if you can please submit a patch\n" "${uname_s}" >&2 - exit 1 + printf "Don't know how to list disks for %s operating system without lsblk, if you can please submit a patch\n" "${uname_s}" >&2 fi ;; *) - printf "%s operating system is not supported, if you can please submit a patch\n" "${uname_s}" >&2 - exit 1 + printf "Don't know how to list disks for %s operating system, if you can please submit a patch\n" "${uname_s}" >&2 ;; esac + +exit 0