You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
 
 
 

29 lines
585 B

echo Installing bakasable
cd $(dirname "$0")
handle_error() {
echo "An error occurred on line $1"
rm -rf ~/.bakasable
cd $(pwd)
exit 1
}
trap 'handle_error $LINENO' ERR
mkdir -m 777 ~/.bakasable
mkdir ~/.bakasable/cache
cp -f ./bin/linux/bakasable ~/.bakasable/
if [ ! $(witch premake5) ]; then
cp -f ./bin/linux/premake5 ~/.bakasable/
fi
echo Searching path in env PATH
if [ ! $(witch bakasable) ]; then
echo Path not found in env PATH
echo Adding path
echo "export PATH=$PATH:~/.bakasable" >> ~/.bashrc
else
echo Path already added
fi
cd $(pwd)