From 786633be3f57f66eecaa5534f0a9703373439138 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 20 Jun 2022 00:08:10 +0100 Subject: added size command --- src/install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/install.sh') diff --git a/src/install.sh b/src/install.sh index 52f0a13..4bbacbe 100644 --- a/src/install.sh +++ b/src/install.sh @@ -125,3 +125,18 @@ reinstall () { install $@ } +do_install () { + [ "$#" = "0" ] && set -- $(installed) + + toinstall=${CACHE_DIR}/toinstall + + echo "" > $toinstall + tofetch="" + for f in $@; do + [ -f "$f" ] && echo $f >> $toinstall || tofetch="$tofetch$f " + done + + get $tofetch + install $(cat $toinstall) +} + -- cgit v1.2.1