[packages/rpm-build-tools] prompt before deletion

glen glen at pld-linux.org
Fri Jun 7 15:04:26 CEST 2013


commit 8ccb0f4c1306829837d03edfe7838b69706852de
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jun 7 16:02:27 2013 +0300

    prompt before deletion

 purge-packages.sh | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/purge-packages.sh b/purge-packages.sh
index 9886533..d93e6df 100755
--- a/purge-packages.sh
+++ b/purge-packages.sh
@@ -10,6 +10,9 @@ topdir=$(rpm -E %_topdir)
 purgedir=$topdir/purged
 cd "$topdir"
 
+echo "Purging in $topdir, press ENTER to continue"
+read a
+
 if [ -d "$purgedir" ]; then
 	echo >&2 "Previous pruge dir exists: $purgedir, remove it to resume"
 	exit 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/8bb9552ae5a09530bf70b5ce8267d9d65f875fbf



More information about the pld-cvs-commit mailing list