Comments (7)
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.
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.
What does the stat -f%m that is already in the script work with?
from git-radar.
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.
Nice catch 👍
from git-radar.
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.
Closing because PR #79 was merged to fix this.
from git-radar.
Related Issues (20)
- is_cwd_a_dot_git_directory:1: = not found HOT 7
- Promote new Maintainers HOT 4
- Calling Formula.sha1 is deprecated! HOT 4
- Calling Formula.sha1 is deprecated! HOT 2
- Not upstream indicator taking up too much space HOT 12
- problem with fish HOT 2
- Weird issue with Makefile HOT 2
- Running git-radar --bash is slow HOT 3
- Fish - LS is completely bugged HOT 2
- command overlaps prompt with stash HOT 1
- odd sed error on branches named with multiple / characters HOT 7
- have to pull twice to update a work branch HOT 22
- Made a new lightweight stable version of git-radar HOT 2
- weird characters show up with git-radar on mac os x HOT 8
- fatal error messages with git-radar on local untracked branches HOT 11
- Unhandled git error when a tracked upstream branch is removed HOT 2
- 0.6 upgrade issue HOT 3
- feature req: color prompt red when folder not writable HOT 1
- Reduce the number of binaries needed to be added to the path HOT 3
- cd .git/ produces fatal: /usr/lib/git-core/git-stash cannot be used without a working tree HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-radar.