diff options
author | Guy Harris <gharris@sonic.net> | 2021-04-28 11:35:31 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-04-28 11:35:31 -0700 |
commit | 4e9d2be9ae8efbf14725e2f5778d7b3998f51736 (patch) | |
tree | 133515038f1b3606d97b3ca05799b0de213dc4af | |
parent | 00b86cf64d638e332228ed6433fec82366b14f90 (diff) |
validate-clang-check: fix extracting the file basename.
-rwxr-xr-x | tools/validate-clang-check.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validate-clang-check.sh b/tools/validate-clang-check.sh index 53401ba9f4..f01e196338 100755 --- a/tools/validate-clang-check.sh +++ b/tools/validate-clang-check.sh @@ -14,7 +14,7 @@ COMMIT_FILES=$( git diff-index --cached --name-status HEAD^ | grep -v "^D" | cut for FILE in $COMMIT_FILES; do # Skip some special cases - FILE_BASENAME="$(basename file)" + FILE_BASENAME="$(basename $FILE)" # iLBC: the file is not even compiled when ilbc is not installed if test "$FILE_BASENAME" = "iLBCdecode.c" then |