melawy-archiso-config/Melawy-Linux-Tiny/00_reset_light.sh

16 lines
323 B
Bash
Executable File

#!/bin/sh
edition="$(basename $(pwd))"
sudo rm -rfv ../work_${edition}
status="$?"
mkdir ../work_${edition}
notify-send -a "$(basename $(pwd)): Reset" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')"
echo "Ready"
if [ "$status" == 0 ]; then
sleep 5
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')
fi