- #!/bin/env bash
- install_dir=/opt/dyfi/
- cmd=''
- read -d '' cmd <<CMD
- alias 'rm'='rm --preserve-root'
- echo "Deleting ${install_dir}"
- rm -rf ${install_dir}
- rm -f /etc/init.d/dyfi
- echo "Deleting /usr/bin/dyfi"
- rm -f /usr/bin/dyfi
- CMD
- sudo -- bash -e -c "$cmd"
|