podcatch/install.sh

14 lines
341 B
Bash
Raw Normal View History

2021-05-25 23:30:29 +02:00
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
echo "Base directory is : $BASEDIR"
echo "Building..."
go build
echo "Built."
echo "Making executable..."
chmod +x $BASEDIR/podcatch
echo "Made."
echo "Copying to /usr/bin"
sudo cp $BASEDIR/podcatch /usr/bin/podcatch
echo "Copied."
echo "You should now be able to run podcatch as just 'podcatch'"