diff options
author | Galen Guyer <galen@galenguyer.com> | 2022-08-09 18:23:15 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2022-08-09 18:23:15 -0400 |
commit | 3a363c648641314ed3d20d4c9f363cf01072c301 (patch) | |
tree | 5535ed1cddef1be0d737dea60ad42b8b9710d1bb /modules | |
parent | 1ce073aa9fae85ade97673ae5ac297fc7f8d6255 (diff) |
add logging module
Diffstat (limited to 'modules')
-rw-r--r-- | modules/40-git/install.sh | 3 | ||||
-rw-r--r-- | modules/40-neofetch/install.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/40-git/install.sh b/modules/40-git/install.sh index 890db77..384f539 100644 --- a/modules/40-git/install.sh +++ b/modules/40-git/install.sh @@ -12,10 +12,11 @@ function preinstall() { function install() { # backup old file if it exists and we haven't backed it up before if [[ -f "$HOME/.gitconfig" ]] && ! [[ -f "$HOME/.gitconfig.bak" ]] && ! [[ -f "$_scriptdir/.firstrun" ]]; then - echo "making backup" + log verbose "making backup" cp "$HOME/.gitconfig" "$HOME/.gitconfig.bak" touch "$_scriptdir/.firstrun" fi + log info "linking gitconfig" ln -f "$_scriptdir/gitconfig" "$HOME/.gitconfig" } diff --git a/modules/40-neofetch/install.sh b/modules/40-neofetch/install.sh index 65a90d3..c432a71 100644 --- a/modules/40-neofetch/install.sh +++ b/modules/40-neofetch/install.sh @@ -12,10 +12,11 @@ function preinstall() { function install() { # backup old file if it exists and we haven't backed it up before if [[ -f "$HOME/.config/neofetch/config.conf" ]] && ! [[ -f "$HOME/.config/neofetch/config.conf.bak" ]] && ! [[ -f "$_scriptdir/.firstrun" ]]; then - echo "making backup" + log verbose "making backup" cp "$HOME/.config/neofetch/config.conf" "$HOME/.config/neofetch/config.conf.bak" touch "$_scriptdir/.firstrun" fi + log info "linking neofetch config" ln -f "$_scriptdir/config.conf" "$HOME/.config/neofetch/config.conf" } |