Skip to content

Commit

Permalink
updates drives.sh to ignore drive partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
bkelly16 committed Jan 15, 2025
1 parent b496b67 commit 3e3254e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ for link in "$VDEV_DIR"/*; do
continue
fi

if [[ "$realdev" =~ [0-9]$ ]]; then
continue
fi

echo "======================================================="
echo -e "SMART Information for alias: \e[32m$(basename "$link")\e[0m"
echo -e "Physical device resolved to: \e[32m$realdev\e[0m"
Expand Down

0 comments on commit 3e3254e

Please sign in to comment.