From 03d6c334d28d45346965d8b400c8881d02212cc0 Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 14 Jul 2021 15:53:53 -0600 Subject: [PATCH] shortened install-linux.sh loop & if --- install/docker-linux.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/docker-linux.sh b/install/docker-linux.sh index 3c8f127..e8ac58d 100755 --- a/install/docker-linux.sh +++ b/install/docker-linux.sh @@ -9,13 +9,7 @@ mkdir -p ./uploads/thumbnails/ mkdir -p ./share/ # Ensure that files config.json, auth.json, & data.json exist -for value in config.json auth.json data.json -do - if [ ! -f $value ]; then - echo "File $value does not exist. Creating..." - touch $value - fi -done +for value in config.json auth.json data.json do if [ ! -f $value ]; then touch $value; fi; done # Wait for user to confirm echo "Continuing will run docker-compose. Continue? (Press Ctrl+C to abort)"