Giter Site home page Giter Site logo

Comments (7)

hallzy avatar hallzy commented on July 20, 2024

My mistake, on further inspection of the code, it appears that the script is trying to check some creation, or modified statistic for the lastupdatetime file, except that what it tries to do is returning 0 instead of the time.

I am using Ubuntu

from git-radar.

hallzy avatar hallzy commented on July 20, 2024

For ubuntu I need to replace line 134 of radar-base.sh... I tried this:

printf '%s' "$(stat -c%Z "$(dot_git)/lastupdatetime" 2>/dev/null || printf '%s' "0")"

and that worked

I assume that the statement that is already there works on another OS? I am unsure how to make this line OS specific so that it only executes on specific OS's

from git-radar.

hallzy avatar hallzy commented on July 20, 2024

What does the stat -f%m that is already in the script work with?

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

stat -f%m is the correct parameter for the version of stat provided by default by OSX. Seems stat isn't the same on OSX and Ubuntu. I've checked and gstat, GNU version of stat provided by coreutils supports the gstat -c%Z flag that you've mentioned above.

It's annoying but we can deal with it. The brew formula already installs coreutils so we can switch fairly easily to gstat for Mac and stat for everything else.

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Nice catch 👍

from git-radar.

hallzy avatar hallzy commented on July 20, 2024

Thanks :)

Would my pull request #77 fix this issue? I do not have a Mac to test it, but it is working for me on Ubuntu.

from git-radar.

hallzy avatar hallzy commented on July 20, 2024

Closing because PR #79 was merged to fix this.

from git-radar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.