Unverified Commit 10a4ce8b authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

only complain if not sourced

parent e5b5c304
#!/bin/bash
pathname=$_
echo "Rember: you need to run me as 'source ./source_me.sh', not as './source_me.sh'!"
echo "So if shit doesn't work, try that (you may have alrd"
if [[ "$pathname" != "$0" ]]; then
echo "Rember: you need to run me as 'source ./source_me.sh', execute it!"
echo "So if shit doesn't work, try that (you may have alrd"
return
fi
if [ -d venv ]; then
source venv/bin/activate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment