1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

nvme-ebs-links: quote readlink output, it may be empty

This commit is contained in:
Valery Ushakov 2022-11-03 00:37:16 +00:00
parent 4d85faffea
commit feada28f10

View File

@ -38,7 +38,7 @@ case $ACTION in
remove)
for TARGET in sd* xvd*
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"
done
;;