over-env/bin/force-install
2017-04-10 11:13:11 +02:00

19 lines
307 B
Bash
Executable file

#! /bin/zsh
# encoding: utf-8
for arg in $@
do
if [[ "$arg" =~ "::" ]]; then
suffix=""
else
suffix="::gentoo"
fi
cave perform fetch "${arg}${suffix}" && \
cave perform install --destination installed "${arg}${suffix}"
if [[ $? -eq 1 ]]; then
echo "!!! failed during $arg"
exit 1
fi
done