From c2cb6eb870497ee0f3b3a6af416102dae0ceadef Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 27 Feb 2018 15:44:50 +0100 Subject: Fix link to snapshot sdk --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 00455c9..66b0406 100755 --- a/build.sh +++ b/build.sh @@ -45,8 +45,11 @@ download_sdk() { check $sdk_tar $sdk_url if ! test -e $sdk; then test -e build_dir || mkdir build_dir - tar xvpf $sdk_tar -C build_dir - (cd build_dir && ln -sfT ${dist}-sdk-${ver}-${arch}-${subarch}* $sdk_name) + local sdk_dir=$(tar tpf $sdk_tar|head -1) + if ! test -e build_dir/$sdk_dir; then + tar xvpf $sdk_tar -C build_dir + fi + (cd build_dir && ln -sfT $sdk_dir $sdk_name) fi } -- cgit v1.2.3