mirror of
https://github.com/Spearfoot/FreeNAS-scripts
synced 2025-12-10 13:23:33 +00:00
Consistent if and do code formatting
This commit is contained in:
@@ -30,8 +30,7 @@ get_smart_drives()
|
||||
|
||||
gs_smartdrives=""
|
||||
|
||||
for gs_drive in $gs_drives
|
||||
do
|
||||
for gs_drive in $gs_drives; do
|
||||
gs_smart_flag=$(/usr/local/sbin/smartctl -i /dev/"$gs_drive" | grep "SMART support is: Enabled" | awk '{print $4}')
|
||||
if [ "$gs_smart_flag" == "Enabled" ]; then
|
||||
gs_smartdrives=$gs_smartdrives" "${gs_drive}
|
||||
|
||||
Reference in New Issue
Block a user