#!/bin/bash echo | lscpu | grep "rchitecture" if lscpu | grep -q "arm"; then docker-compose -f docker-compose-ARM.yaml exec mqtt /usr/bin/mosquitto_pub -h localhost -t tag -m $1 else docker-compose exec mqtt /usr/bin/mosquitto_pub -h localhost -t tag -m $1 fi