Commit 85ba4bd6 authored by sunny's avatar sunny

branches/zip: Change directory to one level up if export.sh script run from

within the scripts/ directory, so that the relative paths work. This change
was required because the script was moved from the top-level directory to
its sub-directory scripts/.
parent ce409987
......@@ -14,6 +14,14 @@ if [ $# -ne 2 ] ; then
die "Usage: export.sh revision-number-of-last-snapshot current-revision-number"
fi
# If we are run from within the scripts/ directory then change directory to
# one level up so that the relative paths work.
DIR=`basename $PWD`
if [ "${DIR}" = "scripts" ]; then
cd ..
fi
START_REV=$(($1 + 1))
END_REV=$2
......
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