mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update commit check in init_deps.sh
This commit is contained in:
parent
bc2af48a7d
commit
8c2d0b98d8
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ do
|
|||
post="yes"
|
||||
else
|
||||
echo "⚠️ Skipping clone of $url because target directory is already present"
|
||||
# Check if the commit is already present
|
||||
if [ "$(git rev-parse "$commit" 2>/dev/null)" != "$commit" ] ; then
|
||||
# Check if the commit is already present in the subtree
|
||||
if [ "$(echo "$(git log -n 1 --oneline HEAD)" | cut -c1-9)" != "$(echo "$commit" | cut -c1-9)" ] ; then
|
||||
echo "ℹ️ Updating ${name} from $url at commit/version $commit"
|
||||
do_and_check_cmd git subtree pull --prefix "src/deps/src/$id" "$url" "$commit" --squash
|
||||
post="yes"
|
||||
|
|
|
|||
Loading…
Reference in a new issue