Force shallow git pull to prevent duplication of images

This commit is contained in:
Jafner 2022-02-24 14:50:31 -08:00 committed by GitHub
parent fa3e3f5e0e
commit d3fa9bcf15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
fi