ensure sourced

This commit is contained in:
nicolas.dorier
2018-05-18 00:26:59 +09:00
parent 2ce16c1a53
commit 13f0b77b59

View File

@@ -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