we don't do raw ANSI codes here, we have echo_c for that.

pull/404/head
Paul Philippov 2022-08-24 19:07:41 -04:00
parent 38ad51e8dc
commit 93fd18f76f
1 changed files with 4 additions and 1 deletions

View File

@ -142,7 +142,10 @@ check_sdcard() {
} }
create_lock() { create_lock() {
[ -f /tmp/sysupgrade.lock ] && echo -e "\e[1;31m\nAnother sysupgrade process is already running!\e[0m\n" && exit 1 if [ -f /tmp/sysupgrade.lock ]; then
echo_c 31 "\nAnother sysupgrade process is already running!"
exit 1
fi
touch /tmp/sysupgrade.lock touch /tmp/sysupgrade.lock
} }