Explorar o código

fix scan_printf script error code handling

Urs Hanselmann %!s(int64=2) %!d(string=hai) anos
pai
achega
dcb89cf107
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      scripts/scan_printf.sh

+ 1 - 2
scripts/scan_printf.sh

@@ -6,8 +6,7 @@ grep \
   -rnw include code \
   -e '^\s*printf'
 
-if [ $? ]
-then
+if [ $? -eq 0 ]; then
   echo "Debug statement(s) detected. Please uncomment (using single-line comment), remove, or manually add to exclude filter, if appropriate" 
   exit 1
 fi