ubuntu: use a local variable where possible

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2025-12-02 16:26:25 +01:00
parent 5cbea9f677
commit 49e1ab15cd

View File

@ -33,7 +33,7 @@ json.dump(yaml.safe_load(sys.stdin), sys.stdout, default=str)
# Use jq to retrieve a list of --snap options from a given *signed* model.
get_snaps_args()
{
model=$1
local model=$1
# The model is signed and is not valid YAML unless we get rid of the
# signature. Here we assume the only blank line is before the signature.