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:
parent
05e357cc7a
commit
299c41091b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue