Force shallow git pull to prevent duplication of images
This commit is contained in:
parent
fa3e3f5e0e
commit
d3fa9bcf15
4
init.sh
4
init.sh
@ -111,7 +111,7 @@ else
|
|||||||
git remote add upstream $DL_LINK
|
git remote add upstream $DL_LINK
|
||||||
fi
|
fi
|
||||||
echo " === Pulling from GitHub... (This might take a while)"
|
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
|
VERSION=$(jq -r .version package.json) # Get version from package.json
|
||||||
echo " === Starting version $VERSION"
|
echo " === Starting version $VERSION"
|
||||||
httpd-foreground
|
httpd-foreground
|
||||||
@ -168,4 +168,4 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user