lineage_kernel_xcoverpro/scripts/android-major-version.sh

6 lines
105 B
Bash
Executable File

#!/bin/sh
MAJOR=$(echo $1 | cut -d '.' -f 1)
let MAJOR=MAJOR+103
printf "%b" "$(printf '\%03o' $MAJOR)"