summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck_java_packages2
1 files changed, 1 insertions, 1 deletions
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