#!/bin/bash srcdir=$(dirname $(readlink -f $0)) venvdir=~/.local/lib/runon bindir=~/.local/bin configdir=~/.config/runon if [ -e $venvdir/bin/runon ]; then echo "remove links from $bindir" find -L $bindir -samefile $bindir/runon -exec rm -v {} \; find -L $bindir -samefile $venvdir/bin/runon -exec rm -v {} \; fi if [ -d $venvdir ]; then echo "remove virtualenv $venvdir" rm -rf $venvdir fi if [ -e $configdir ]; then echo "remove configs" rm -vf $configdir/runon.default.conf rmdir -v $configdir || true fi echo "done."