aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-09-07 21:47:05 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-09-07 21:47:05 -0700
commit1da8fd266075f26a02ca8bbf2a6ebf86255b0e6b (patch)
tree782b8b462f0231a653ebc9aa7ffb0829702d4754
parentd280bcfe3f1b8d8a666d21d68e71a1eec99ade63 (diff)
Fixed check for empty string in prefixes and stuff
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
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..."; \