adds force-install to /bin
This commit is contained in:
parent
bd3494d184
commit
c9c089afad
1 changed files with 19 additions and 0 deletions
19
bin/force-install
Executable file
19
bin/force-install
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#! /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
|
Loading…
Add table
Add a link
Reference in a new issue