mirror of
https://github.com/morgan9e/systemd
synced 2026-04-13 16:04:28 +09:00
coccinelle: error out when spatch is not installed
Otherwise parallel keeps spitting out "command not found".
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user