mirror of
https://github.com/shadoll/sscript.git
synced 2025-12-20 15:32:04 +00:00
update
This commit is contained in:
16
scripts/git/submodule_pull.sh
Executable file
16
scripts/git/submodule_pull.sh
Executable 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"
|
||||
Reference in New Issue
Block a user