Skip to content

Commit fd586cf

Browse files
committed
[lumen] remove install dir before reinstalling
1 parent 2550fda commit fd586cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lumen/utils/dist/build-dist.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ function install_release() {
556556
local cwd=""
557557
cwd="$(pwd)"
558558
cd "$build_dir/stage2/$flavor"
559+
rm -rf "$install_dir"
559560
mkdir -p "$install_dir"
560561
cp -R "stage2-$release.install"/usr/local/* "$install_dir"/
561562
cd "$cwd"
@@ -666,6 +667,10 @@ else
666667
rm -rf "$stage2_destdir"
667668
mkdir -p "$stage2_objdir"
668669
mkdir -p "$stage2_destdir"
670+
if [ -z "${install_dir}" ]; then
671+
echo "Missing install_dir!"
672+
exit 2
673+
fi
669674
rm -rf "${install_dir:?}"/*
670675

671676
echo "# Stage 2: Building LLVM"

0 commit comments

Comments
 (0)