Ticket #26664: patch-files-epubcheck.in.diff

File patch-files-epubcheck.in.diff, 471 bytes (added by jpenney (Jason Penney), 7 years ago)

patch that corrects issues with wrapper script

  • files/epubcheck.in

    old new  
    11#!/usr/bin/env sh
    2 
    3 MYTMP=/tmp/epubcheck$$.txt
    4 
    5 java -classpath @@EPUBCHECK@@ -jar @@EPUBCHECK@@/epubcheck.jar $@ 2>&1 | tee ${MYTMP}
    6 
    7 MYERR=$(grep "^ERROR" ${MYTMP} | wc -l)
    8 
    9 rm -f ${MYTMP}
    10 
    11 if [ ${MYERR} -ne 0 ]; then
    12     exit 1
    13 fi
    14 
    15 exit 0
     2exec java -classpath @@EPUBCHECK@@ -jar @@EPUBCHECK@@/epubcheck.jar "$@"