GREEN="\033[1;32m" RED="\033[1;31m" PURPLE="\033[1;35m" BLUE="\033[1;34m" RESET="\033[0m" if [[ $1 == "-l" ]]; then # Used on local machine echo -e $RED"Not implemented"$RESET elif [[ $1 == "-r" ]]; then # Used on server echo -en $GREEN"Running with: ID="$BLUE$2$GREEN" and PASS="$BLUE$3"\nIs that ok? ["$GREEN"Y"$BLUE"/"$RED"n"$BLUE"]"$PURPLE read -p " " confirmation if [[ $confirmation == "n" ]]; then exit 666 fi elif [[ $1 == "-h" ]]; then echo "iottadd.sh < -l | -r > < id > < pass > -l for usage on local machine -r for usage on server (remote)" else echo -e $RED"Expected \"-l\" or \"-r\""$RESET fi