Skip to content

Commit

Permalink
Remove default config file
Browse files Browse the repository at this point in the history
Since 925944c, default config values are set within the script itself
when no setting key match is found in the config file. This makes the
necessity for this default config file obsolete.
  • Loading branch information
AntonVanAssche committed Apr 19, 2024
1 parent b6391de commit 906fc72
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions BSDmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
PREFIX = $(HOME)/.local
CONF_DIR = $(HOME)/.config/bashpass
PASS_DIR = $(PREFIX)/share/bashpass
BIN = /usr/bin
MAN_DIR = /usr/share/man/man1
SUDO := doas
Expand All @@ -15,9 +13,6 @@ install:
@$(SUDO) install -v -m755 bashpass $(BIN)
@$(SUDO) install -v -m644 docs/bashpass.1.gz $(MAN_DIR)
@$(SUDO) install -v -m644 docs/bashpass.conf.1.gz $(MAN_DIR)
@mkdir -vp $(CONF_DIR)
@cp -vr config/bashpass.conf $(CONF_DIR)/bashpass.conf
@mkdir -vp $(PASS_DIR)
@echo BashPass installed successfully!

update:
Expand All @@ -32,6 +27,5 @@ uninstall:
@$(SUDO) rm -vf $(BIN)/bashpass
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.1.gz
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.conf.1.gz
@rm -vrf $(CONF_DIR)
@echo BashPass uninstalled successfully!
@echo Bye, have a nice day!
6 changes: 0 additions & 6 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
PREFIX = $(HOME)/.local
CONF_DIR = $(HOME)/.config/bashpass
PASS_DIR = $(PREFIX)/share/bashpass
BIN = /usr/bin
MAN_DIR = /usr/share/man/man1
SUDO := sudo
Expand Down Expand Up @@ -28,9 +26,6 @@ install:
@$(SUDO) install -v -m755 bashpass $(BIN)
@$(SUDO) install -v -m644 docs/bashpass.1.gz $(MAN_DIR)
@$(SUDO) install -v -m644 docs/bashpass.conf.1.gz $(MAN_DIR)
@mkdir -vp $(CONF_DIR)
@cp -vr config/bashpass.conf $(CONF_DIR)/bashpass.conf
@mkdir -vp $(PASS_DIR)
@echo BashPass installed successfully!

update:
Expand All @@ -45,6 +40,5 @@ uninstall:
@$(SUDO) rm -vf $(BIN)/bashpass
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.1.gz
@$(SUDO) rm -vf $(MAN_DIR)/bashpass.conf.1.gz
@rm -vrf $(CONF_DIR)
@echo BashPass uninstalled successfully!
@echo Bye, have a nice day!
3 changes: 0 additions & 3 deletions config/bashpass.conf

This file was deleted.

0 comments on commit 906fc72

Please sign in to comment.