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:
parent
473e93fbff
commit
dfc132a514
@ -357,7 +357,7 @@ fi
|
|||||||
warnings
|
warnings
|
||||||
|
|
||||||
if test -z "$userdir"; then
|
if test -z "$userdir"; then
|
||||||
cd "$HOME"
|
cd "$HOME" || return
|
||||||
"$TAR" czf "$lvm_dump" "$dirbase" 2>/dev/null
|
"$TAR" czf "$lvm_dump" "$dirbase" 2>/dev/null
|
||||||
"$RM" -rf "$dir"
|
"$RM" -rf "$dir"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user