diff --git a/recipes/flask.sh b/recipes/flask.sh index f4b2237..188d77b 100755 --- a/recipes/flask.sh +++ b/recipes/flask.sh @@ -31,7 +31,7 @@ say "Well, as an alchemy-themed toolkit, I must say: ${GREEN}good decision :)${R say "" # Make sure this script isn't being run with sudo in front -if id -u; then +if ! id -u > /dev/null; then say "${RED}${BOLD}Woah there!${RESET} Seems you're running this script as a superuser." say "" say "That might cause some issues with permissions and whatnot. Run this script as your default user (without sudo) and I'll ask you when I need superuser permissions"