diff --git a/tools/op.sh b/tools/op.sh index 1715aaab63..a7ce7ef28b 100755 --- a/tools/op.sh +++ b/tools/op.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +if [[ ! "${BASH_SOURCE[0]}" = "${0}" ]]; then + echo "Invalid invocation! This script must not be sourced." + echo "Run 'op.sh' directly or check your .bashrc for a valid alias" + return 0 +fi + set -e RED='\033[0;31m'