This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if qrencode is installed | |
if ! [ -x "$(command -v qrencode)" ]; then | |
# Install qrencode if it is not installed | |
brew install qrencode | |
fi | |
# Find the local IP address of the Mac | |
ip_address=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}') |