lineage_kernel_xcoverpro/scripts/android-major-version.sh

6 lines
105 B
Bash
Raw Normal View History

2023-06-18 22:53:49 +00:00
#!/bin/sh
MAJOR=$(echo $1 | cut -d '.' -f 1)
let MAJOR=MAJOR+103
printf "%b" "$(printf '\%03o' $MAJOR)"