Minor fix

This commit is contained in:
Cyril 2024-05-01 21:43:47 +02:00
parent c8db437b79
commit bfc68e958c
3 changed files with 9 additions and 3 deletions

View file

@ -21,7 +21,9 @@ function check_file_3v3() {
}
function check_simplyprint_3v3() {
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
if [ ! -f "$MOONRAKER_CFG" ]; then
echo -e "${red}"
elif grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
echo -e "${green}"
else
echo -e "${red}"

View file

@ -21,7 +21,9 @@ function check_file_k1() {
}
function check_simplyprint_k1() {
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
if [ ! -f "$MOONRAKER_CFG" ]; then
echo -e "${red}"
elif grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
echo -e "${green}"
else
echo -e "${red}"

View file

@ -21,7 +21,9 @@ function check_file_ke() {
}
function check_simplyprint_ke() {
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
if [ ! -f "$MOONRAKER_CFG" ]; then
echo -e "${red}"
elif grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
echo -e "${green}"
else
echo -e "${red}"