We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3d559f commit a354379Copy full SHA for a354379
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -363,7 +363,7 @@ function initiate_upgrade {
363
fi
364
365
# Fallback to lsblk if ebsnvme-id is not available or no mapping found, pre ubuntu 20.04
366
- if [ -z "$BLOCK_DEVICE" ]; then
+ if [ -z "${BLOCK_DEVICE:-}" ]; then
367
echo "No block device found using ebsnvme-id, falling back to lsblk"
368
# awk NF==3 prints lines with exactly 3 fields, which are the block devices currently not mounted anywhere
369
# excluding nvme0 since it is the root disk
0 commit comments