From 138b23d28dd8be7f9bc5e0f00c46eacf7ca106e5 Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Sat, 26 Oct 2019 20:24:04 +0300 Subject: [PATCH] Fix script removal The `script` variable you were referring to previously is actually the relative path to a script, for example `bin/mw`. This fails to remove the script, because, obviously, the path is incorrect. I'd suggest renaming `script` to `scriptPath` in line 13 and `shared` to `sharedPath` in line 18 (or whatever variable names you prefer that make it clearer) to avoid confusion in the future. Signed-off-by: Kipras Melnikovas --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 68db4ff..4180fdc 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,9 @@ install: cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1 uninstall: - for script in bin/*; do \ - rm -f $(DESTDIR)$(PREFIX)/bin/$$script; \ + for scriptPath in bin/*; do \ + scriptFile=$$(basename $$scriptPath); \ + rm -f $(DESTDIR)$(PREFIX)/bin/$$scriptFile; \ done rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard