papirus-icon-theme/tools/work/clean.sh
2017-01-05 21:07:25 +02:00

20 lines
445 B
Bash
Executable file

#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname "$0")
find "$SCRIPT_DIR/ePapirus" "$SCRIPT_DIR/Papirus" "$SCRIPT_DIR/Papirus-Dark" \
"$SCRIPT_DIR/Papirus-Light" -name '*.svg' -print
echo -n "Do you want to delete the files? [y/N]: "; read REPLY
case "$REPLY" in
[Yy]*)
find "$SCRIPT_DIR/ePapirus" "$SCRIPT_DIR/Papirus" "$SCRIPT_DIR/Papirus-Dark" \
"$SCRIPT_DIR/Papirus-Light" -name '*.svg' -delete
;;
*)
echo "Abort."
;;
esac