Skip to content

Commit

Permalink
mconfig will not ask before replacing "builddir"
Browse files Browse the repository at this point in the history
Signed-off-by: Yannick Cote <yhcote@gmail.com>
  • Loading branch information
yhcote committed Oct 18, 2018
1 parent 5f56ffd commit 618cb2b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mlocal/checks/basechecks.chk
Expand Up @@ -11,14 +11,7 @@ if [ "$builddir" = "" ]; then
builddir=builddir
fi
if [ -e $builddir -a $builddir != "." -a $builddir != ".." ]; then
printf "$builddir already exist, remove ? [Y/n] "
read var
if [ "$var" = "n" -o "$var" = "N" ]; then
echo "error: choose another build directory"
exit 2
else
rm -rf $builddir
fi
rm -rf $builddir
fi
mkdir -p $builddir

Expand Down

0 comments on commit 618cb2b

Please sign in to comment.