@@ 19,10 19,10 @@ major() {
echo "$1" | cut -d. -f1
}
minor() {
- echo "$1" | cut -d. -f2 || 0
+ echo "$1" | cut -d. -f2 || echo 0
}
patch() {
- echo "$1" | cut -d. -f3 || 0
+ echo "$1" | cut -d. -f3 || echo 0
}
# version_dir emits the directory into which a particular go