1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

shellcheck: validate cd success

This commit is contained in:
Zdenek Kabelac 2024-11-14 17:48:06 +01:00
parent 473e93fbff
commit dfc132a514

View File

@ -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