diff options
-rwxr-xr-x | scripts/image_signing/set_channel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/image_signing/set_channel.sh b/scripts/image_signing/set_channel.sh index bb0927ac..a3bd4f97 100755 --- a/scripts/image_signing/set_channel.sh +++ b/scripts/image_signing/set_channel.sh @@ -30,7 +30,7 @@ main() { lsb="${rootfs}/etc/lsb-release" mount_image_partition "${image}" 3 "${rootfs}" # Get the current channel on the image. - local from=$(grep '^CHROMEOS_RELEASE_TRACK=' "${lsb}" | cut -d '=' -f 2) + local from=$(lsbval "${lsb}" 'CHROMEOS_RELEASE_TRACK') from=${from%"-channel"} echo "Current channel is '${from}'. Changing to '${to}'." |