summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/installer/adt-installer/adt_installer
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer/adt_installer')
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/adt_installer9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index 1f481ded6..cca576f7e 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -216,17 +216,18 @@ done
download_file()
{
-if [ -f "$LOCAL_DOWNLOAD/$1" ]; then
- confirm_download $1
+local filename=`echo ${1##*/}`
+if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
+ confirm_download $filename
result="$?"
if [ ! "$result" == "0" ]; then
return
else
echo "Removing old file [$1]"
- rm -rf "$LOCAL_DOWNLOAD/$1"
+ rm -rf "$LOCAL_DOWNLOAD/$filename"
fi
fi
-echo_info "Downloading file: $1..."
+echo_info "Downloading file: $filename..."
wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
}