coccinelle: error out when spatch is not installed

Otherwise parallel keeps spitting out "command not found".
This commit is contained in:
Jelle van der Waa
2025-11-24 21:05:10 +01:00
parent c12966c14f
commit 863b852c80
+5
View File
@@ -33,6 +33,11 @@ case "$1" in
;;
esac
if ! command -v spatch >/dev/null; then
echo 'Please install spatch (package "coccinelle")'
exit 1
fi
if ! parallel -h >/dev/null; then
echo 'Please install GNU parallel (package "parallel")'
exit 1