missing exit 1 lead into an error and not good state of cdist

This commit is contained in:
Dominique Roux 2019-10-04 22:41:18 +02:00
parent a432d6a51e
commit 0459bde77f

View file

@ -17,7 +17,7 @@ rule_files="$(cat "$__object/parameter/rule-files")"
##### INSTALL THE PACKAGE ###################################################
require_pkg="" # what to require if I want to require "the package"
require_pkg="prometheus" # what to require if I want to require "the package"
require=""
if [ -f "$__object/parameter/install-from-backports" ]; then
os=$(cat "$__global/explorer/os")
@ -33,6 +33,7 @@ if [ -f "$__object/parameter/install-from-backports" ]; then
*)
echo "--install-from-backports is only supported on Devuan -- ignoring." >&2
echo "Send a pull request if you require it." >&2
exit 1
;;
esac
else