diff options
author | davidovski <david@davidovski.xyz> | 2022-08-28 18:31:25 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-08-28 18:31:25 +0000 |
commit | 62ac6c319289550931696346ce08f2c0ed70fc0d (patch) | |
tree | db46daf7ef3bb5d0e1dad5f05c39bb6afb743953 /src/get.sh | |
parent | 45fdd7d7bdbffe9bca29ff630b1fea917b2338c2 (diff) |
fixed removing removing from wrong sysrootv1.7.4
Diffstat (limited to 'src/get.sh')
-rwxr-xr-x | src/get.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |