X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=scripts%2Fmodules-check.sh;h=e06327722263e1632577608c5c70831e76582cc9;hb=732a27a0891cb5db1a0f9c33a018ea6eca9a4023;hp=43de226071ae38adbc919f951cda442855bc967c;hpb=0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d;p=linux-2.6-microblaze.git diff --git a/scripts/modules-check.sh b/scripts/modules-check.sh index 43de226071ae..e06327722263 100755 --- a/scripts/modules-check.sh +++ b/scripts/modules-check.sh @@ -13,10 +13,10 @@ exit_code=0 # Check uniqueness of module names check_same_name_modules() { - for m in $(sed 's:.*/::' $1 | sort | uniq -d) + for m in $(sed 's:.*/::' "$1" | sort | uniq -d) do echo "error: the following would cause module name conflict:" >&2 - sed -n "/\/$m/s:^: :p" modules.order >&2 + sed -n "/\/$m/s:^: :p" "$1" >&2 exit_code=1 done }