Explorar el Código

Remove tmpfile

George Jones hace 3 años
padre
commit
46bad6bc03
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      some

+ 1 - 1
some

@@ -60,7 +60,7 @@ function someFunc {
     # display line numbers to stderr to allow re-extraction of randomly chosen lines
     echo some: lines $FIRST to $LAST \(of $LINES\) of $FILE |& tee /dev/stderr >> ${SOMELOG}
     # only keep MAXLOG lines of SOMELOG
-    mv ${SOMELOG} ${SOMELOG}.$$ && tail -${MAXLOG} ${SOMELOG}.$$ > ${SOMELOG}
+    mv ${SOMELOG} ${SOMELOG}.$$ && tail -${MAXLOG} ${SOMELOG}.$$ > ${SOMELOG} && rm ${SOMELOG}.$$