From 8300c54c92b21bf30d5af6a1f56109d0e852d9f9 Mon Sep 17 00:00:00 2001 From: msdobrescu Date: Thu, 30 Sep 2021 07:38:13 +0300 Subject: [PATCH] No greeting when luet Don't display mOS greeting during luet operations. --- .../mocaccino/mocaccino-init/definition.yaml | 2 +- packages/mocaccino/mocaccino-init/greeting.sh | 46 ++++++++++--------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/packages/mocaccino/mocaccino-init/definition.yaml b/packages/mocaccino/mocaccino-init/definition.yaml index 03a6a478..dc045d4a 100644 --- a/packages/mocaccino/mocaccino-init/definition.yaml +++ b/packages/mocaccino/mocaccino-init/definition.yaml @@ -1,3 +1,3 @@ category: "system" name: "mocaccino-init" -version: "0.20210828+1" +version: "0.20210828+2" diff --git a/packages/mocaccino/mocaccino-init/greeting.sh b/packages/mocaccino/mocaccino-init/greeting.sh index 3aac1cba..35aac339 100755 --- a/packages/mocaccino/mocaccino-init/greeting.sh +++ b/packages/mocaccino/mocaccino-init/greeting.sh @@ -1,24 +1,26 @@ #!/bin/sh -echo -e \ -'\e[2m\n'\ -' ..\n'\ -' .. ..\n'\ -' ..\n'\ -' ..\n'\ -' ..\n'\ -' ..\n'\ -' ..\n'\ -'## .. ####\n'\ -'##.............## ##\n'\ -'##.............## ##\n'\ -'##.............## ##\n'\ -'##.............###\n'\ -' ##...........##\n'\ -' #############\n'\ -' #############\n'\ -'#################\n'\ -'\n'\ -'\e[22mWelcome to \e[33mMocaccinoOS\n'\ -'\e[0m\n'\ -'' +if [ -z "$LUET_FINALIZE" ] ; then + echo -e \ + '\e[2m\n'\ + ' ..\n'\ + ' .. ..\n'\ + ' ..\n'\ + ' ..\n'\ + ' ..\n'\ + ' ..\n'\ + ' ..\n'\ + '## .. ####\n'\ + '##.............## ##\n'\ + '##.............## ##\n'\ + '##.............## ##\n'\ + '##.............###\n'\ + ' ##...........##\n'\ + ' #############\n'\ + ' #############\n'\ + '#################\n'\ + '\n'\ + '\e[22mWelcome to \e[33mMocaccinoOS\n'\ + '\e[0m\n'\ + '' +fi