From 1da8fd266075f26a02ca8bbf2a6ebf86255b0e6b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 7 Sep 2019 21:47:05 -0700 Subject: Fixed check for empty string in prefixes and stuff --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fad7aba..f69fdc4 100644 --- a/Makefile +++ b/Makefile @@ -54,10 +54,10 @@ $(NAME): $(NAME).c bterm.h config.h install: $(NAME) @prefix="$(PREFIX)"; \ - if test -n $$prefix; then \ + if test -z $$prefix; then \ read -p $$'\033[1mWhere do you want to install? (default: /usr/local) \033[0m' prefix; \ fi; \ - if test -n $$prefix; then \ + if test -z $$prefix; then \ prefix="/usr/local"; \ fi; \ mkdir -pv $$prefix/bin $$prefix/share/man/man1 \ @@ -66,10 +66,10 @@ install: $(NAME) uninstall: @prefix="$(PREFIX)"; \ - if test -n $$prefix; then \ + if test -z $$prefix; then \ read -p $$'\033[1mWhere do you want to uninstall from? (default: /usr/local) \033[0m' prefix; \ fi; \ - if test -n $$prefix; then \ + if test -z $$prefix; then \ prefix="/usr/local"; \ fi; \ echo "Deleting..."; \ -- cgit v1.2.3