From 7c0d0ecb50a2120d96a52e8a2492efd6ca0fed04 Mon Sep 17 00:00:00 2001 From: zen Date: Mon, 11 Apr 2022 11:11:52 -0700 Subject: [PATCH] flask sudo check --- recipes/flask.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"