Skip to content

Commit a7b352b

Browse files
committed
fix: Hack clearing after intermediate source-ing
1 parent 62e8c09 commit a7b352b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,20 @@ else
4949
echowrn "Skipping terminal applications..."
5050
fi
5151

52+
# Restore environment after previous source-ing to avoid confusing logs
53+
source ~/.dotfiles/err.sh "${BASH_SOURCE[0]}"
54+
source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
55+
5256
if [[ $arg_desktop -gt 0 ]]; then
5357
source ~/.dotfiles/install/desktop.sh
5458
else
5559
echowrn "Skipping desktop applications..."
5660
fi
5761

62+
# Restore environment after previous source-ing to avoid confusing logs
63+
source ~/.dotfiles/err.sh "${BASH_SOURCE[0]}"
64+
source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
65+
5866
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
5967
echolog "Restoring idle and lock settings"
6068
gsettings set org.gnome.desktop.session idle-delay "${idle_delay}"

install/desktop.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ do
3232
fi
3333
done
3434

35+
# Restore environment after previous source-ing to avoid confusing logs
36+
source ~/.dotfiles/err.sh "${BASH_SOURCE[0]}"
37+
source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
38+
3539
if [[ -z "${DOTFILES_INSTALL_SH}" ]]; then
3640
echolog "Successful installers: ${DOTFILES_INSTALL_SUCCESS}"
3741
echolog "Failed installers: ${DOTFILES_INSTALL_FAILURE}"

install/terminal.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ do
3333
fi
3434
done
3535

36+
# Restore environment after previous source-ing to avoid confusing logs
37+
source ~/.dotfiles/err.sh "${BASH_SOURCE[0]}"
38+
source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
39+
3640
if [[ -z "${DOTFILES_INSTALL_SH}" ]]; then
3741
echolog "Successful installers: ${DOTFILES_INSTALL_SUCCESS}"
3842
echolog "Failed installers: ${DOTFILES_INSTALL_FAILURE}"

0 commit comments

Comments
 (0)