Skip to content

Commit ce5afc0

Browse files
committed
fixed version padding to work correctly also without patch level
1 parent a1a8c3c commit ce5afc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assertInPath(){ if [ -z "$(which $1)" ]; then echo "[ERROR] Could not locate '$1
1010
trim() { while read -r line; do echo "$line"; done; }
1111

1212
## pad version with 0s. From https://stackoverflow.com/questions/18668556/comparing-numbers-in-bash
13-
function pad_version { printf "%03d" $(echo "$1" | tr '.' ' '); }
13+
function pad_version { printf "%03d%03d%03d" $(echo "$1" | tr '.' ' '); }
1414

1515

1616
assertInPath kotlinc

0 commit comments

Comments
 (0)