fixed exit status on check that was wrong

This commit is contained in:
Rasmus Thorslund 2025-04-23 16:48:22 +02:00
parent 3ac219d0d4
commit 02d286a7df
No known key found for this signature in database
GPG key ID: 502D33332E9E305D

View file

@ -9,9 +9,9 @@ FILE_TO_CHECK=${1:-/etc/run-cosmos-fleetlock-disable}
if [[ -e "$FILE_TO_CHECK" ]]; then
echo "WARNING: '$FILE_TO_CHECK' exists so fleetlock is disabled."
exit 0
exit 1
else
echo "OK: Fleetlock is not disabled"
exit 1
exit 0
fi