From a72b81c39554ad8b0668cadc3c6d9702db8cfc57 Mon Sep 17 00:00:00 2001 From: dancer Date: Thu, 27 Sep 2001 09:16:34 +0000 Subject: fixing some serious typos . --- pbuilder-runhooks | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'pbuilder-runhooks') diff --git a/pbuilder-runhooks b/pbuilder-runhooks index 623f29b..8e19bca 100644 --- a/pbuilder-runhooks +++ b/pbuilder-runhooks @@ -18,6 +18,9 @@ # # HISTORY: # $Log$ +# Revision 1.5 2001/09/27 09:16:34 dancer +# fixing some serious typos . +# # Revision 1.4 2001/09/27 08:20:58 dancer # changing little bits to my liking, and hopefully removing any potentially dangerous bits. # @@ -48,7 +51,7 @@ hooks=/tmp/hooks # function loadhooks () { - if [ -e "$BUILDPLACE/$hooks" ]; then + if [ -d "$BUILDPLACE/$hooks" ]; then rm -rf "$BUILDPLACE/$hooks" fi if [ -d "$HOOKDIR" ]; then @@ -61,7 +64,11 @@ function loadhooks () { # function unloadhooks () { - rm -rf "$BUILDPLACE/$hooks" + if [ -d "$BUILDPLACE/$hooks" ]; then + rm -rf "$BUILDPLACE/$hooks" + else + echo "E: Logic failure." + fi } #-------------------------------------------------------------------------- @@ -77,7 +84,6 @@ function unloadhooks () { function executehooks () { local prefix=$1 - # is this necessary? pushd $BUILDPLACE/$hooks for fn in $prefix[0-9][0-9]* ; do @@ -85,7 +91,7 @@ function executehooks () { *~) echo "E: skipping an editor backup file $fn" ;; - *.bak) + *.bak) echo "E: skipping a backup file $fn" ;; *) -- cgit v1.2.3