summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
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