summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKipras Melnikovas <kipras@kipras.org>2019-11-24 01:31:17 +0200
committerLuke Smith <luke@lukesmith.xyz>2019-11-23 18:31:17 -0500
commit4904fcf51f878a8648d333d2fac7cbfe2728c47b (patch)
tree903ed86a6243ce1bc9a8b95b5aa80a712694a800
parentc81a1bd5251c7082fc58e7714d2b1aede664abd5 (diff)
Fix script removal (#310)
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 <kipras@kipras.org>
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 20c82d1..823e719 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
rm -f $(DESTDIR)$(MANPREFIX)/man1/mw.1