From 8383299751465445baeefc16869c92ad8c049d5e Mon Sep 17 00:00:00 2001 From: Michel Boaventura Date: Wed, 26 Jul 2017 21:14:18 -0300 Subject: [PATCH] Skip fuse install on gentoo if already installed The bootstrap.sh script always installs fuse on gentoo. This small change just checks if it is already installed and skip it if so. --- bootstrap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 7180e6f..0278387 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -281,8 +281,10 @@ gentoo() echo "Installing git..." sudo emerge dev-vcs/git fi - echo "Installing fuse..." - sudo emerge sys-fs/fuse + if [ -z "$(which fusermount)" ]; then + echo "Installing fuse..." + sudo emerge sys-fs/fuse + fi if [ "$2" == "qemu" ]; then if [ -z "$(which qemu-system-x86_64)" ]; then echo "Please install QEMU and re-run this script"