Skip to content

Commit e4c9a76

Browse files
committed
Fix warning during installation when setting LC_ALL
If LC_ALL=en_US.UTF-8 didn't exist when bash was started, it can't load it.
1 parent 66680de commit e4c9a76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

trixie

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function boring_workarounds() {
519519

520520
# If no /etc/environment exists, default to en_US.UTF-8
521521
grep -q LC_ALL /etc/environment || echo 'LC_ALL="en_US.UTF-8"' >> /etc/environment
522-
source /etc/environment
522+
source /etc/environment 2>/dev/null
523523
export LC_ALL
524524

525525
# ######################## #

0 commit comments

Comments
 (0)