diff options
-rwxr-xr-x | scripts/image_signing/ensure_sane_lsb-release.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/image_signing/ensure_sane_lsb-release.sh b/scripts/image_signing/ensure_sane_lsb-release.sh index 007ded0f..d86eacb3 100755 --- a/scripts/image_signing/ensure_sane_lsb-release.sh +++ b/scripts/image_signing/ensure_sane_lsb-release.sh @@ -148,7 +148,8 @@ main() { local boardvar=$(get_boardvar_from_lsb_release "${rootfs}") channel=$(lsbval $lsb CHROMEOS_RELEASE_TRACK) # For a canary or dogfood channel, appid maybe a different default value. - if [ $channel = 'canary-channel' ] || [ $channel = 'dogfood-channel' ]; then + if [[ "${channel}" == 'canary-channel' || + "${channel}" == 'dogfood-channel' ]]; then eval "expected_appid=\"\$expected_appid_${channel%\-channel}\"" else eval "expected_appid=\"\$expected_appid_$boardvar\"" |