summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-28 18:31:25 +0000
committerdavidovski <david@davidovski.xyz>2022-08-28 18:31:25 +0000
commit62ac6c319289550931696346ce08f2c0ed70fc0d (patch)
treedb46daf7ef3bb5d0e1dad5f05c39bb6afb743953 /src/get.sh
parent45fdd7d7bdbffe9bca29ff630b1fea917b2338c2 (diff)
fixed removing removing from wrong sysrootv1.7.4
Diffstat (limited to 'src/get.sh')
-rwxr-xr-xsrc/get.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/get.sh b/src/get.sh
index 197b232..08e5ee5 100755
--- a/src/get.sh
+++ b/src/get.sh
@@ -156,16 +156,17 @@ get () {
checksum=$2
size=$3
- if ! is_installed $package; then
+ if is_installed $package; then
+ if [ "$(get_installed_version $package)" = "$checksum" ]; then
+ already="$already $package"
+ continue
+ fi
+ else
install="$install $package"
total_download=$((total_download+size))
continue
fi
- if [ "$(get_installed_version $package)" = "$checksum" ]; then
- already="$already $package"
- continue
- fi
update="$update $package"
total_download=$((total_download+size))
done