Quote All Variables #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bad:
for disk in $(lsblk -d -o name | grep -E '^sd|^nvme'); do
Good:
while IFS= read -r disk; do
-z "$disk" && continue
done < <(lsblk -d -o name | grep -E '^sd|^nvme')