Change full comparison to [[ ]] notation to fix warning

This commit is contained in:
Rob Zimmerman 2013-09-03 09:55:14 -04:00
parent 8a1b3348f2
commit d89ef8bc56

View file

@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
# RelayMyHome -- v. 0.4 # RelayMyHome -- v. 0.5
# by Rob Zimmerman (https://www.github.com/taintedzodiac) # by Rob Zimmerman (https://www.github.com/taintedzodiac)
# View the original source, readme, and license at https://github.com/taintedzodiac/relaymyhome # View the original source, readme, and license at https://github.com/taintedzodiac/relaymyhome
# Tested in OS X 10.8 (Mountain Lion) # Tested in OS X 10.8 (Mountain Lion)
@ -39,7 +39,7 @@ cleanup()
networksetup -setairportpower $wifi off networksetup -setairportpower $wifi off
networksetup -setairportpower $wifi on networksetup -setairportpower $wifi on
echo "Cycling of Relays has completed, MAC address reverted.\n" echo "Cycling of Relays has completed, MAC address reverted."
} }
ctrl_c() ctrl_c()
@ -54,7 +54,7 @@ ctrl_c()
# trap keyboard interrupt (control-c) or unexpected quit # trap keyboard interrupt (control-c) or unexpected quit
trap ctrl_c SIGINT SIGTERM trap ctrl_c SIGINT SIGTERM
if [ $1 == "full" ] if [[ $1 == "full" ]]
then then
# Generate a full list of 160 MACs when "full" mode is specified # Generate a full list of 160 MACs when "full" mode is specified
# To use full mode: ./relaymyhome full # To use full mode: ./relaymyhome full