This file contains hidden or 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 | |
# Ask which version to build 🤔 | |
read -p "Which version do you want to build? (1 for dev, 2 for prod): " version_choice | |
case $version_choice in | |
1) version="dev" ;; | |
2) version="prod" ;; | |
*) | |
while [[ "$version_choice" != "1" && "$version_choice" != "2" ]]; do | |
read -p "❌ Invalid input. Please enter '1' for dev or '2' for prod: " version_choice |
This file contains hidden or 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}') |