Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scripts: coccicheck: simplify debug file handling

This commit separates handling unset files and pre-existing files. It
also eliminates a duplicated check for unset files in run_cmd_parmap().

Signed-off-by: Benjamin Philip <benjamin.philip495@gmail.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>

authored by

Benjamin Philip and committed by
Julia Lawall
8952cfe4 d79526b8

+8 -8
+8 -8
scripts/coccicheck
··· 138 138 if [ $VERBOSE -ne 0 ] ; then 139 139 echo "Running ($NPROC in parallel): $@" 140 140 fi 141 - if [ "$DEBUG_FILE" != "/dev/null" -a "$DEBUG_FILE" != "" ]; then 141 + if [ "$DEBUG_FILE" != "/dev/null" ]; then 142 142 echo $@>>$DEBUG_FILE 143 143 $@ 2>>$DEBUG_FILE 144 144 else ··· 259 259 260 260 } 261 261 262 - if [ "$DEBUG_FILE" != "/dev/null" -a "$DEBUG_FILE" != "" ]; then 263 - if [ -f $DEBUG_FILE ]; then 264 - echo "Debug file $DEBUG_FILE exists, bailing" 265 - exit 266 - fi 267 - else 268 - DEBUG_FILE="/dev/null" 262 + if [ "$DEBUG_FILE" = "" ]; then 263 + DEBUG_FILE="/dev/null" 264 + fi 265 + 266 + if [ -f $DEBUG_FILE ]; then 267 + echo "Debug file $DEBUG_FILE exists, bailing" 268 + exit 269 269 fi 270 270 271 271 if [ "$COCCI" = "" ] ; then