mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Paul Armstrong's Shell Style Guide
This commit is contained in:
parent
85c16b384c
commit
05e357cc7a
1 changed files with 2 additions and 0 deletions
|
@ -31,7 +31,9 @@ echo "" >> iiab-network.log
|
|||
if [ $OS == "centos" ] || [ $OS == "fedora" ]; then
|
||||
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
|
||||
fi
|
||||
|
||||
# Ubuntu desktop might be using NM - split out.
|
||||
# Paul Armstrong's Shell Style Guide: https://google.github.io/styleguide/shell.xml
|
||||
# if [ $(which nmcli) ]; then # syntax fails when multiple lines returned
|
||||
# if [[ `which nmcli` ]]; then # syntax also works
|
||||
if which nmcli; then # syntax works great, with "grep -q" too!
|
||||
|
|
Loading…
Add table
Reference in a new issue