1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

"$OS" is even safer: avoids if-then failing on nullstring

This commit is contained in:
A Holt 2017-12-13 03:15:39 -05:00 committed by GitHub
parent 05e357cc7a
commit 299c41091b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ End=`date`
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
echo "" >> iiab-network.log
# redhat path
if [ $OS == "centos" ] || [ $OS == "fedora" ]; then
if [ "$OS" == "centos" ] || [ "$OS" == "fedora" ]; then
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
fi