Skip to content

Commit 9ce5f22

Browse files
authored
remove outdated Platform line from FireMotD output (#2067)
Signed-off-by: Markus Storm <[email protected]>
1 parent bf97a4b commit 9ce5f22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/generic/bash_profile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ~/.bash_profile: executed by bash(1) for interactive shells.
1+
# shellcheck shell=bash
22

33
source /opt/openhabian/functions/helpers.bash
44

@@ -28,7 +28,7 @@ fi
2828

2929
echo
3030
if [ -f ~/.firemotd-cache ]; then
31-
cat ~/.firemotd-cache
31+
grep -v Platform ~/.firemotd-cache
3232
fi
3333
(FireMotD --theme Gray > ~/.firemotd-cache &) &>/dev/null # does not use cache; might get removed in the near future
3434

@@ -38,6 +38,6 @@ OHBUILD="$(sed -n 's/build-no\s*: //p' /var/lib/${OHPKG}/etc/version.properties)
3838

3939
echo -e "\\n$(sed -e 's|$OHVERSION|'"${OHVERSION}"'|g' -e 's|$OHBUILD|'"${OHBUILD}"'|g' -e 's|${HOSTNAME}|'"${HOSTNAME}"'|g' /opt/openhabian/includes/${OHPKG}logo)\\n"
4040

41-
if [[ -f $HOME/.profile ]]; then source $HOME/.profile; fi
41+
if [[ -f "$HOME"/.profile ]]; then source "$HOME"/.profile; fi
4242

4343
# vim: filetype=sh

0 commit comments

Comments
 (0)