diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dtc-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dtc-version.sh b/scripts/dtc-version.sh index bfb514e179f..53ff868bcdc 100755 --- a/scripts/dtc-version.sh +++ b/scripts/dtc-version.sh @@ -20,7 +20,7 @@ if ! which $dtc >/dev/null ; then exit 1 fi -MAJOR=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 1) +MAJOR=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 1 | tr -d v) MINOR=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 2) PATCH=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 3 | cut -d - -f 1) |