From ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 1 Jul 2021 11:18:08 +0200 Subject: check_java_packages : ^\s*import --- check_java_packages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_java_packages b/check_java_packages index fcc9e4f..f7cc29b 100755 --- a/check_java_packages +++ b/check_java_packages @@ -34,7 +34,7 @@ do echo -e "$file : $RED$PACKAGE$RESET -> $GREEN$CORRECT$RESET"; touch $ERRORS fi - for IMPORT in $(cat $file | sed -n 's/import\s\+.*\.\(.*\);/\1/p'); + for IMPORT in $(cat $file | sed -n 's/^\s*import\s\+.*\.\(.*\);/\1/p'); do cat $file | grep $IMPORT | grep -qv import if [ $? -ne 0 ]; then -- cgit v1.1-2-g2b99