Skip to content

Commit

Permalink
fix: get_disk_info
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasmakey committed May 8, 2024
1 parent a8a465a commit da5b933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discovery/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ get_mem_info() {

# Function to get physical disk info
get_disk_info() {
disk_info=$(lsblk -dpno NAME | paste -sd, -)
echo "["${disk_info#,}"]"
disk_info=$(lsblk -dpno NAME | awk '{printf "\"%s\",", $1}' | sed 's/,$//')
echo "[${disk_info}]"
}

# Function to get physical interface info
Expand Down

0 comments on commit da5b933

Please sign in to comment.