Verified Commit d7897e85 authored by Rahix's avatar Rahix
Browse files

fix(code-style): Error if no sources given


Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 8e26bdaf
...@@ -12,6 +12,11 @@ if ! command -v python3 >/dev/null 2>&1; then ...@@ -12,6 +12,11 @@ if ! command -v python3 >/dev/null 2>&1; then
exit 127 exit 127
fi fi
if [ "$#" == 0 ]; then
echo "usage: $0 <source.c> ..."
exit 1
fi
script_dir="$(dirname "$0")" script_dir="$(dirname "$0")"
for source_file in "$@"; do for source_file in "$@"; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment