summaryrefslogtreecommitdiffstats
path: root/check_java_packages
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2021-07-01 11:18:08 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2021-07-01 11:18:08 +0200
commitce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763 (patch)
tree69d5eeee9808d05f51f963ebf314f84c39b94801 /check_java_packages
parentbcb73bf489ec420d44621ed94c2dcf498930bcda (diff)
downloadbin-ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763.zip
bin-ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763.tar.gz
check_java_packages : ^\s*import
Diffstat (limited to 'check_java_packages')
-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