diff --git a/btcpay-setup.sh b/btcpay-setup.sh index e059d29..557e491 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ "$0" != "$BASH_SOURCE" ]; then + echo "This script must be sourced \". btcpay-setup.sh\"" + exit 1 +fi + if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" return