Skip to content

Commit

Permalink
Move version number over to the application
Browse files Browse the repository at this point in the history
I'm not really sure why I thought it would be a good idea to include the version number in the configuration file, rather than the application itself to begin with. So feel free to remove it from your config.
  • Loading branch information
AntonVanAssche committed Mar 20, 2023
1 parent 728600f commit 201eb86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bashpass
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ get_setting() {

# Get the necessary configurations from the configuration file.
# '|| :' To prevent the script from exiting if the variable is not found (especially needed for the '${email} variable').
version="3.0" || :
email="$(get_setting 'email')" || :
key_id="$(get_setting 'keyID')" || :
pass_location="$HOME/$(get_setting 'location')" || :
version="$(get_setting 'version')" || :
timer="$(get_setting 'timer')" || :
pass_length="$(get_setting 'length')" || :
git_repo="$(get_setting 'gitRepo')" || :
Expand Down
1 change: 0 additions & 1 deletion config/bashpass.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: 3.0
location: .local/share/bashpass
timer: 10
length: 14

0 comments on commit 201eb86

Please sign in to comment.