Commit e504d6b3 authored by Lucas Russo's avatar Lucas Russo

scripts/disable-service.sh: check for unset variable SERVICE

parent 344128b8
......@@ -25,6 +25,12 @@ while getopts ":s:" opt; do
esac
done
if [ -z "$SERVICE" ]; then
echo "\"SERVICE\" variable unset."
usage
exit 1
fi
INIT_SYSTEM=$(./get-init-system.sh)
# Enable service depending on which init system we are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment