Browse Source
POSIX sed doesn't do non-greddy match so we just pipe it to awk. This will handle cases when the latest nighlty version is installed or not. Command tested with. echo "v10.0.0-nightly20171126bb4462681c (test)" \ | sed -n "s/.*\(v.*\)/\1/p" | awk '{print $1}' echo "-> v10.0.0-nightly20171126bb4462681c (test)" \ | sed -n "s/.*\(v.*\)/\1/p" | awk '{print $1}'pull/40/head
Cswl Coldwind
7 years ago
1 changed files with 22 additions and 17 deletions
Loading…
Reference in new issue