From 77ca0e9ed9e519df8c55908f599d333839343f2d Mon Sep 17 00:00:00 2001 From: George Danchev Date: Thu, 23 Jun 2011 16:22:17 +0000 Subject: [PATCH] safety net, change to starting directory nefore rm'ing self-generated stuff --- libisoburn/trunk/releng/releng_build_isojigdo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/releng/releng_build_isojigdo b/libisoburn/trunk/releng/releng_build_isojigdo index 105f643b..50e6110a 100755 --- a/libisoburn/trunk/releng/releng_build_isojigdo +++ b/libisoburn/trunk/releng/releng_build_isojigdo @@ -2,11 +2,12 @@ set -e -# required +START_DIR=`pwd` +# required config items XOR="" DIR="" IMG="" -# optional +# optional config items ISOLINUX_BIN="" BOOT_CAT="" CONFFILE=$HOME/releng_build_isojigdo.conf @@ -146,6 +147,9 @@ esac # sort out the cruft if [ ${CLEAN} -eq 1 ]; then + # safety net, just in case -> we want to be in the starting + # directory before removing whatever self-generated stuff + cd "${START_DIR}" || exit 1 rm -f ${RES} printf "$0: removed %s\n" ${RES} else