php-hotfix/installer/install.sh

19 lines
377 B
Bash
Raw Normal View History

2016-12-31 00:43:07 +00:00
#!/bin/bash
2017-02-01 02:59:36 +00:00
if [ ! -d ~/bin ]; then
echo "Creating ~/bin..."
mkdir ~/bin
fi
2016-12-31 00:43:07 +00:00
echo "Installing hotfix executable..."
cp hotfix ~/bin/hotfix
echo "Fixing permissions..."
chmod +x ~/bin/hotfix
if [ -e ~/.hotfix.conf ]; then
echo "Configuration file ~/.hotfix.conf already exists"
else
echo "Installing configuration file..."
cp hotfix.conf ~/.hotfix.conf
fi