From d3fa9bcf154b489a1187bb7b3765f2506aa04bee Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:50:31 -0800 Subject: [PATCH] Force shallow git pull to prevent duplication of images --- init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.sh b/init.sh index 712e420..f8e25d3 100644 --- a/init.sh +++ b/init.sh @@ -111,7 +111,7 @@ else git remote add upstream $DL_LINK fi echo " === Pulling from GitHub... (This might take a while)" - git pull upstream master 2> /dev/null + git pull --depth=1 upstream master 2> /dev/null VERSION=$(jq -r .version package.json) # Get version from package.json echo " === Starting version $VERSION" httpd-foreground @@ -168,4 +168,4 @@ else exit 1 fi fi -fi \ No newline at end of file +fi