diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-09-07 21:47:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-09-07 21:47:05 -0700 |
| commit | 1da8fd266075f26a02ca8bbf2a6ebf86255b0e6b (patch) | |
| tree | 782b8b462f0231a653ebc9aa7ffb0829702d4754 /Makefile | |
| parent | d280bcfe3f1b8d8a666d21d68e71a1eec99ade63 (diff) | |
Fixed check for empty string in prefixes and stuff
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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..."; \ |
