Fix the shellcheck error

This commit is contained in:
walking-octopus 2022-07-30 16:12:37 +00:00 committed by GitHub
parent d2d1c0aab4
commit 69907f6f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1125,7 +1125,8 @@ get_distro() {
distro=${distro/NAME=}
if [[ -f /usr/bin/system-image-cli ]]; then
export ut_ota=$(system-image-cli -i | awk '/version tag:/ { print $3 }');
local ut_ota
ut_ota=$(system-image-cli -i | awk '/version tag:/ { print $3 }');
distro="Ubuntu Touch $ut_ota";
# There's a weird UT bug where the HOSTNAME is set to android.