From 4f6da7031a4934a45c6bc1d26d08a21c01759117 Mon Sep 17 00:00:00 2001 From: sunsuodong Date: Fri, 25 Dec 2020 10:08:24 +0800 Subject: [PATCH] fix pkg script --- scripts/lite_release_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lite_release_package.sh b/scripts/lite_release_package.sh index ec63442c59..bf63ef36dc 100644 --- a/scripts/lite_release_package.sh +++ b/scripts/lite_release_package.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019 Huawei Technologies Co., Ltd +# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -123,7 +123,7 @@ echo "Usage: bash lite_release_package.sh input_path output_path" input_path=$1 output_path=$2 -version=`ls ${input_path}/android_aarch64/mindspore-lite-*-inference-*.tar.gz | cut -d"-" -f3` +version=`ls ${input_path}/android_aarch64/mindspore-lite-*-inference-*.tar.gz | awk -F'/' '{print $NF}' | cut -d"-" -f3` android_release_package linux_release_package