This commit is contained in:
sHa
2019-06-25 10:23:23 +03:00
parent d04bd4c630
commit 63fe6b62d6
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "sscripts", "name": "sscripts",
"version": "1.0.19", "version": "1.0.20",
"description": "Useful Shell scripts for projects", "description": "Useful Shell scripts for projects",
"author": "sHa <sha@shadoll.dev>", "author": "sHa <sha@shadoll.dev>",
"license": "MIT", "license": "MIT",

View File

@@ -3,7 +3,7 @@
# @package sscripts # @package sscripts
# @author sHa <sha@shadoll.dev> # @author sHa <sha@shadoll.dev>
# @copyright 2019 shadoll # @copyright 2019 shadoll
# @version 19.6.7 # @version 19.6.25
# @link https://shadoll.dev # @link https://shadoll.dev
# #
@@ -20,10 +20,10 @@ fi
git submodule init git submodule init
if [ -f $PROJECT/docker/.ssh/id_rsa ]; then if [ -f $PROJECT/docker/.ssh/id_rsa ]; then
if [ `stat -c %a $PROJECT/docker/.ssh/id_rsa` -ne '600' ]; then if [ `stat -c %a $PROJECT'docker/.ssh/id_rsa'` -ne '600' ]; then
chmod -R a=rwX,go-rwX $PROJECT/docker/.ssh chmod -R a=rwX,go-rwX $PROJECT'docker/.ssh'
fi fi
ssh-agent sh -c "ssh-add -D; ssh-add $ROOT/docker/.ssh/id_rsa; git submodule update" ssh-agent sh -c "ssh-add -D; ssh-add $PROJECT'docker/.ssh/id_rsa'; git submodule update"
else else
git submodule update git submodule update
fi fi