You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
446 B
15 lines
446 B
#!/bin/bash
|
|
|
|
# Copyright (c) 2025 Robert Strutts <bobs@NewToFaith.com>
|
|
# 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
|
|
|