blob: da70f6bfc9e79432fbd716777a7d86c8f6ce1ed1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- screenfetch-dev.orig 2015-07-14 12:32:02 UTC
+++ screenfetch-dev
@@ -515,6 +515,14 @@ detectdistro () {
if [ "$distro" == "Unknown" ]; then
if [ $(uname -o 2>/dev/null) ]; then
case "$(uname -o)" in
+ "FreeBSD")
+ distro="FreeBSD"
+ fake_distro="${distro}"
+ ;;
+ "DragonFly")
+ distro="DragonFlyBSD"
+ fake_distro="${distro}"
+ ;;
"Cygwin")
distro="Cygwin"
fake_distro="${distro}"
@@ -4151,11 +4159,10 @@ for i in "${display[@]}"; do
! [[ $Win_theme ]] && detectwmtheme;
else
if [[ "${display[*]}" =~ "$i" ]]; then
- if [[ "$errorSuppress" == "1" ]]; then detect${i} 2>/dev/null
- else
- exec 3> >(stderrOut)
- detect${i} 2>&3
- exec 3>&-
+ if [[ "$errorSuppress" == "1" ]]; then
+ detect${i} 2>/dev/null
+ else
+ detect${i}
fi
fi
fi
|