From 098c357646ecc39f5875852a13fbceb4cd9d713b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 22 Nov 2020 20:03:11 +0000 Subject: [PATCH] sde-cleanup-linger: add -d/--dry-run mode Signed-off-by: Alejandro Mery --- bin/sde-cleanup-linger | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/bin/sde-cleanup-linger b/bin/sde-cleanup-linger index c010a60..0b90223 100755 --- a/bin/sde-cleanup-linger +++ b/bin/sde-cleanup-linger @@ -23,11 +23,36 @@ . $SDEROOT/lib/libsde.in -if [ $# -ne 0 ]; then - echo "Usage: sde cleanup linger" - exit 1 +cleanup_usage() { + local progname="${0##*/}" + cat <