Skip to content

Commit

Permalink
prevent globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
swapdisk committed Feb 27, 2024
1 parent 672f822 commit a5c70e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/bigboot/files/bigboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ deactivate_volume_group() {
check_available_free_space() {
local device="${DEVICE_NAME}${PARTITION_PREFIX}${ADJACENT_PARTITION_NUMBER}"
# Get LVM details
eval "$(/usr/sbin/lvm pvs --noheadings --nameprefixes --nosuffix --units b -o vg_name,vg_extent_size,pv_pe_count,pv_pe_alloc_count,vg_free_count $device)"
eval "$(/usr/sbin/lvm pvs --noheadings --nameprefixes --nosuffix --units b -o vg_name,vg_extent_size,pv_pe_count,pv_pe_alloc_count,vg_free_count "$device")"
status=$?
if [[ $status -ne 0 ]]; then
echo "Failed getting LVM details for $device: $status"
Expand Down

0 comments on commit a5c70e4

Please sign in to comment.