From dfc132a514c3137c40c5ce113853c4dedb483ac7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 14 Nov 2024 17:48:06 +0100 Subject: [PATCH] shellcheck: validate cd success --- scripts/lvmdump.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lvmdump.sh.in b/scripts/lvmdump.sh.in index 0685d85fb..595627a7a 100644 --- a/scripts/lvmdump.sh.in +++ b/scripts/lvmdump.sh.in @@ -357,7 +357,7 @@ fi warnings if test -z "$userdir"; then - cd "$HOME" + cd "$HOME" || return "$TAR" czf "$lvm_dump" "$dirbase" 2>/dev/null "$RM" -rf "$dir" fi