mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 11:52:43 +03:00
nvme-ebs-links: quote readlink output, it may be empty
This commit is contained in:
parent
4d85faffea
commit
feada28f10
@ -38,7 +38,7 @@ case $ACTION in
|
|||||||
remove)
|
remove)
|
||||||
for TARGET in sd* xvd*
|
for TARGET in sd* xvd*
|
||||||
do
|
do
|
||||||
[ $(readlink "$TARGET" 2>/dev/null) = "$MDEV" ] && rm -f "$TARGET" && \
|
[ "$(readlink "$TARGET" 2>/dev/null)" = "$MDEV" ] && rm -f "$TARGET" && \
|
||||||
log notice "Removed $TARGET symlink for $MDEV"
|
log notice "Removed $TARGET symlink for $MDEV"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user