mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-22 14:41:15 +00:00
fix broken if
This commit is contained in:
parent
6400e12a80
commit
14d1f42a38
@ -20,6 +20,7 @@ while [ ! -n "$1" ]; do
|
||||
echo "-------------------------------------------------"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [[ -n $(ls /dev | grep nvme) ]];then
|
||||
echo "=== nvme drive check: ==="
|
||||
for x in {0..4};do
|
||||
@ -30,7 +31,8 @@ while [ ! -n "$1" ]; do
|
||||
echo "---------------------------------------------------"
|
||||
fi
|
||||
done
|
||||
else
|
||||
fi
|
||||
if [[ -n $(ls /dev | grep nvme) ]] || if [[ -n $(ls /sys/block | grep sd) ]];then
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
@ -83,6 +85,7 @@ while [ ! -n "$1" ]; do
|
||||
fi
|
||||
#adding further controllers here
|
||||
fi
|
||||
done
|
||||
while [ ! -z "$1" ]; do
|
||||
if [[ $1 == "-u" ]] || [[ "$1" == "--update" ]];then
|
||||
if [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/stocheck.sh | md5sum | cut -c -32) != $(md5sum $0 | cut -c -32) ]];then
|
||||
@ -105,5 +108,3 @@ while [ ! -z "$1" ]; do
|
||||
exit
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user