busybox: createlog: no githash stored in /etc/issue

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard 2023-03-16 15:51:32 +00:00
parent 462b767ce4
commit 787b30b24b

View File

@ -10,7 +10,6 @@ DATE=$(date -u +%Y-%m-%d-%H.%M.%S)
BASEDIR=$(mktemp -d) BASEDIR=$(mktemp -d)
LOGDIR="log-$DATE" LOGDIR="log-$DATE"
RELEASE=$(cat /etc/release) RELEASE=$(cat /etc/release)
GIT=$(grep git < /etc/issue)
getlog_cmd() { getlog_cmd() {
if command -v $1 >/dev/null; then if command -v $1 >/dev/null; then
@ -18,7 +17,6 @@ getlog_cmd() {
echo "################################################################################" echo "################################################################################"
echo "# ... output of $@" echo "# ... output of $@"
echo "# LibreELEC release: $RELEASE" echo "# LibreELEC release: $RELEASE"
echo "# $GIT"
echo "################################################################################" echo "################################################################################"
} >> $BASEDIR/$LOGDIR/$LOGFILE } >> $BASEDIR/$LOGDIR/$LOGFILE
$@ >> $BASEDIR/$LOGDIR/$LOGFILE 2>/dev/null $@ >> $BASEDIR/$LOGDIR/$LOGFILE 2>/dev/null