mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +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
|
esac
|
||||||
|
|
||||||
|
if ! command -v spatch >/dev/null; then
|
||||||
|
echo 'Please install spatch (package "coccinelle")'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! parallel -h >/dev/null; then
|
if ! parallel -h >/dev/null; then
|
||||||
echo 'Please install GNU parallel (package "parallel")'
|
echo 'Please install GNU parallel (package "parallel")'
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user