corrected $wgetpkg name

This commit is contained in:
M Himansh 2021-05-16 19:42:33 +05:30 committed by GitHub
parent eb89355a1c
commit cebe60eab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ function download_component() {
else
show_message "downloading $4 ..."
ariapkg=$(package_installed aria2c "summary")
wget --progress=bar --tries=0 pkg=$(package_installed wget --progress=bar --tries=0 "summary")
wgetpkg=$(package_installed wget --progress=bar --tries=0 "summary")
if [ "$ariapkg" == "true" ];then
show_message "using aria2c to download $4"
@ -192,7 +192,7 @@ function download_component() {
notify-send "Photoshop CC" "$4 download completed" -i "download"
fi
elif [ "$wget --progress=bar --tries=0 pkg" == "true" ];then
elif [ "$wgetpkg" == "true" ];then
show_message "using wget --progress=bar --tries=0 to download $4"
wget --progress=bar --tries=0 $3 -o $1
else