summaryrefslogtreecommitdiffstats
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 1f481ded61..cca576f7ef 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -216,17 +216,18 @@ done
216 216
217download_file() 217download_file()
218{ 218{
219if [ -f "$LOCAL_DOWNLOAD/$1" ]; then 219local filename=`echo ${1##*/}`
220 confirm_download $1 220if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
221 confirm_download $filename
221 result="$?" 222 result="$?"
222 if [ ! "$result" == "0" ]; then 223 if [ ! "$result" == "0" ]; then
223 return 224 return
224 else 225 else
225 echo "Removing old file [$1]" 226 echo "Removing old file [$1]"
226 rm -rf "$LOCAL_DOWNLOAD/$1" 227 rm -rf "$LOCAL_DOWNLOAD/$filename"
227 fi 228 fi
228fi 229fi
229echo_info "Downloading file: $1..." 230echo_info "Downloading file: $filename..."
230wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" 231wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
231} 232}
232 233