From beaf4d127d4491ae1036ef74bcbd64511abc26c2 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sat, 16 Feb 2019 03:26:27 +0000 Subject: [PATCH] Check Gemfile.lock is writable --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install b/install index 4ba30260c..f743c7e7b 100755 --- a/install +++ b/install @@ -195,7 +195,12 @@ check_bundler () { install_beef () { echo "Installing required Ruby gems..." - rm Gemfile.lock + + if [ -w Gemfile.lock ] + then + /bin/rm Gemfile.lock + fi + if command_exists bundler${RUBYSUFFIX} then bundle${RUBYSUFFIX} install --without test development