Commit e0b17473 authored by Ophélie Gagnard's avatar Ophélie Gagnard

build-scripts/clean_obs.sh: Fix a bug.

parent 6d09fafd
......@@ -3,6 +3,16 @@ set -e
source build-scripts/configuration_information.sh
# reverse the action of obsoleting the potentially altered buildout and restoring the backed up one
if [ ! -e $RUN_BUILDOUT_DIR/bin/backup.buildout ]; then
if [ -e $RUN_BUILDOUT_DIR/bin/buildout ]; then
cp $RUN_BUILDOUT_DIR/bin/buildout $RUN_BUILDOUT_DIR/bin/backup.buildout
fi
fi
if [ -e $RUN_BUILDOUT_DIR/bin/old.buildout ]; then
mv $RUN_BUILDOUT_DIR/bin/old.buildout $RUN_BUILDOUT_DIR/bin/buildout
fi
TMP_TARGET=$INITIAL_DIR/obs-tmp/$SOFTWARE_NAME
TMP_TARGET=`realpath -m $TMP_TARGET`
rm -rf $TMP_TARGET
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