#!/bin/bash if [ ! -f /usr/bin/xlock ]; then echo "xLock is not currently installed." exit fi read -p "Are you shure you want to uninstall xLock? (Enter 'yes' or 'no'): " confirm if [ $confirm = "yes" ]; then xlock sudo rm /usr/bin/xlock -f rm ~/.xlockpw echo -e "\e[93mxLock was successfully uninstalled\e[0m" fi