#8 Improve compatibility with Busybox

closed
nobody
None
5
2010-08-31
2010-08-31
Julian Pawlowski
No

In order to run Duply on my Busybox-based QNAP NAS a minor change to Duply was necessary.
As the implemented grep command is unable to handle parameter "-m" I changed line 727 with

local NSECS=$(date +%N 2> /dev/null | grep -m 1 -e "^[[:digit:]]\{9\}$")

to

local NSECS=$(date +%N 2> /dev/null | head -1 | grep -e "^[[:digit:]]\{9\}$")

Discussion

  • ede
    ede
    2010-08-31

    thanks,

    added for the next release.. ede

     
  • ede
    ede
    2010-08-31

    • status: open --> closed