ソースを参照

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 <kipras@kipras.org>
pull/310/head
Kipras Melnikovas 6年前
コミット
138b23d28d
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: AA505BC1C6D8AD90
1個のファイルの変更3行の追加2行の削除
  1. +3
    -2
      Makefile

+ 3
- 2
Makefile ファイルの表示

@@ -26,8 +26,9 @@ install:
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1 cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1


uninstall: 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 done
rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard




読み込み中…
キャンセル
保存