Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 86cc6e408a4caed36b806a32e7fbeba526cd5638
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Jun 16 10:45:51 2014 +0200
backend: make sure that exit() exit whole script not just sub-shell
---------------------------------------------------------------
backend/copr-prune-repo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/backend/copr-prune-repo b/backend/copr-prune-repo
index c184ffc..7b5ac79 100755
--- a/backend/copr-prune-repo
+++ b/backend/copr-prune-repo
@@ -8,7 +8,7 @@ if [ ! -d $RESULTDIR ]; then
exit 1
fi
-pushd $RESULTDIR >/dev/null || ( echo "Could not change to $RESULTDIR"; exit
1)
+pushd $RESULTDIR >/dev/null || { echo "Could not change to $RESULTDIR"; exit
1; }
for REPO in $( ls -d */*/* | grep -v '/repodata$' ); do
pushd $REPO >/dev/null || continue