mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
.gitcheck: exit 1 if unsupported argument given
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -10,10 +10,13 @@ main()
|
|||||||
{
|
{
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
if [ "${1}" = "clean" ]; then
|
if [ "${1}" = "clean" ]; then
|
||||||
clean
|
clean > /dev/null 2> /dev/null
|
||||||
|
else
|
||||||
|
printf "%s: Unsupported argument\n" $0
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
set_placeholders
|
set_placeholders > /dev/null 2> /dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,4 +79,4 @@ unset_placeholders()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main $@ > /dev/null 2> /dev/null
|
main $@
|
||||||
|
|||||||
Reference in New Issue
Block a user