beacon-biosignals / julia_pod

k8s native julia development
MIT License
10 stars 3 forks source link

`head` with negative byte/line counts is not portable #59

Open kleinschmidt opened 1 year ago

kleinschmidt commented 1 year ago

on macOS I get

➜ git config --get remote.origin.url | grep -o '[^:/]*$' | head -c-5
head: illegal byte count -- -5

when running this line

kleinschmidt commented 1 year ago

this is just removing the .git extension in the repo URL so we should use something portable like sed:

➜ git config --get remote.origin.url | grep -o '[^:/]*$' | sed 's/.git$//'
julia_pod
kleinschmidt commented 1 year ago

or

➜ git config --get remote.origin.url | xargs basename -s .git
julia_pod