1
0
mirror of synced 2025-01-31 04:21:43 +03:00

Fix small error in grep command for upgrade script

This commit is contained in:
Lin Song 2016-01-17 01:17:45 -06:00
parent 6be624a1d1
commit 8f35af5646

View File

@ -18,7 +18,7 @@ if [ ! -f /etc/redhat-release ]; then
exit 1 exit 1
fi fi
if grep -qs -v -e "release 6" -e "release 7" /etc/redhat-release; then if ! grep -qs -e "release 6" -e "release 7" /etc/redhat-release; then
echo "Sorry, this script only supports versions 6 and 7 of CentOS/RHEL." echo "Sorry, this script only supports versions 6 and 7 of CentOS/RHEL."
exit 1 exit 1
fi fi