easyoptions/install.sh

16 lines
376 B
Bash
Raw Normal View History

2014-07-09 22:59:03 +02:00
#!/bin/bash
from=$(dirname "$0")
where="${1:-/usr/local/bin}"
mkdir -p "$where" || exit
2014-07-09 22:59:03 +02:00
2014-11-18 02:18:53 +01:00
if [[ "$2" != --remove ]]; then
cp -v "$from/easyoptions" "$where"
cp -v "$from/easyoptions.sh" "$where"
cp -v "$from/easyoptions.rb" "$where"
2014-07-09 22:59:03 +02:00
else
rm -vf "$where/easyoptions"
rm -vf "$where/easyoptions.sh"
rm -vf "$where/easyoptions.rb"
2014-07-09 22:59:03 +02:00
fi