Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f90dc837ec
Fetching contributors…

Cannot retrieve contributors at this time

executable file 60 lines (43 sloc) 0.66 kb
source ./shell/bash-colors.sh
function package ()
{
AVAIL=(brew port aptitube apt-get)
for PKG in ${AVAIL[@]}
do
if [ `which $PKG` ]
then
grey "Executing $1 with $PKG\n";
$PKG $@;
return 0;
fi
done;
AVSTR=${AVAIL[@]}
# TODO stderr
red "No package mananger found. Supported are: $AVSTR \n";
exit 1;
}
function confirm ()
{
echo -en $1 "[y/n]: ";
read RESP;
if [ $RESP = "y" ]
then
$2;
fi;
}
function install-all()
{
for bin in $@
do
echo -n "Checking for $bin... ";
if [ `which $bin` ]
then
green "yes";
else
red "no\n";
grey "Installing $bin\n";
install_$bin
fi
echo $BIN;
done
}
Jump to Line
Something went wrong with that request. Please try again.