[enh] Replace force option by a better check

This commit is contained in:
ljf (zamentur) 2017-08-30 13:16:12 +02:00 committed by GitHub
parent e3b2db632c
commit 1a83fa6812

View file

@ -186,7 +186,7 @@ setup_package_source() {
if [[ $(lsb_release -c | awk '{print $2}') != jessie ]]; then if [[ $(lsb_release -c | awk '{print $2}') != jessie ]]; then
echo "Current $DISTRIB only works on Debian Jessie for the moment." echo "Current $DISTRIB only works on Debian Jessie for the moment."
return 1 return 1
elif [ ! -d /run/systemd/system ]; then elif ! command -v systemctl > /dev/null ; then
echo "Current $DISTRIB only works with systemd for the moment." echo "Current $DISTRIB only works with systemd for the moment."
return 1 return 1
fi fi