From 0ed4347254bb6ae3605a89444d4c40371b9fea70 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sat, 11 Jun 2022 01:43:02 +0100 Subject: [PATCH] Change import check from falsy to truthy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I should have really tested this 😅 This should be the last hotpush --- docker_launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_launcher.sh b/docker_launcher.sh index 438eb7aa..ec842f4c 100644 --- a/docker_launcher.sh +++ b/docker_launcher.sh @@ -23,7 +23,7 @@ if [ $(id -u) -eq 0 ]; then # If we find files in import directory, we need to ensure all dirs are owned by the root group, # This fixes bind mounts that may have incorrect perms. - if [ ! "$(ls -A --ignore=.gitkeep ./import)" ]; then + if [ "$(ls -A --ignore=.gitkeep ./import)" ]; then echo "Wrapper | 📋 Files present in import, checking/fixing permissions..." echo "Wrapper | ⏳ Please be paitent for larger servers..." find . ! -group root -exec chgrp root {} \;