#!/bin/bash # Copyright (c) 2025 Robert Strutts # License: MIT # GIT: https://git.mysnippetsofcode.com/bobs/execguard export CGO_ENABLED=1 ./stopExecguard.sh /usr/local/bin/go build -o execguard if [ $? -eq 0 ]; then /usr/bin/sudo cp execguard /usr/local/bin/ /usr/bin/sudo ./execguard --update /usr/local/bin/execguard /usr/bin/echo -e "Running execguard...Hit CTRL+C to end." /usr/bin/sudo execguard fi