Commit 52fcbff5 authored by Vermeeren's avatar Vermeeren

result_clear.sh: prompt before removal, show removals

parent 7b44a063
#!/bin/sh
sudo rm /var/cache/pbuilder/result/*
echo "delete every file inside /var/cache/pbuilder/result? [Y/n]"
read -r execute
if [ $? != 0 ] || [ -n "$execute" ] && \
[ "$execute" != 'y' ] && [ "$execute" != 'Y' ]; then
exit 0
fi
sudo rm -v /var/cache/pbuilder/result/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment