diff options
Diffstat (limited to 'src/install.sh')
-rw-r--r-- | src/install.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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) +} + |