This commit is contained in:
sHa
2019-06-07 11:32:20 +03:00
parent 0f40a55db3
commit b9879d231c
5 changed files with 50 additions and 6 deletions

16
scripts/git/submodule_pull.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
#
# @package sscripts
# @author sHa <sha@shadoll.dev>
# @copyright 2019 shadoll
# @version 19.6.7
# @link https://shadoll.dev
#
DIR=$(dirname "$0")
ROOT=$(cd "$DIR"/.. && pwd)
chmod -R a=rwX,go-rwX "$ROOT"/docker/.ssh/
git submodule init
ssh-agent sh -c "ssh-add -D; ssh-add $ROOT/docker/.ssh/id_rsa; git submodule update"