Check script location

This commit is contained in:
Kroese 2023-04-19 01:16:35 +02:00 committed by GitHub
parent 09e2e798a2
commit e6eaa03fb0

View File

@ -23,7 +23,7 @@ start() {
echo 'Starting agent service...'
chmod 666 /dev/ttyS0
if [ -f "$SCRIPT" ]; then
if [ ! -f "$SCRIPT" ]; then
echo 'ERROR: Agent script not found!' > /dev/ttyS0