From 62ac6c319289550931696346ce08f2c0ed70fc0d Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 28 Aug 2022 18:31:25 +0000 Subject: fixed removing removing from wrong sysroot --- src/get.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/get.sh') 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 -- cgit v1.2.1