diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2021-07-01 11:18:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2021-07-01 11:18:08 +0200 |
commit | ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763 (patch) | |
tree | 69d5eeee9808d05f51f963ebf314f84c39b94801 /check_java_packages | |
parent | bcb73bf489ec420d44621ed94c2dcf498930bcda (diff) | |
download | bin-ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763.zip bin-ce485ee9e4f85d65d9c4b35ef7fead3fe7dc4763.tar.gz |
check_java_packages : ^\s*import
Diffstat (limited to 'check_java_packages')
-rwxr-xr-x | check_java_packages | 2 |
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 |