From 63fe6b62d66519a5756d1a92a3fc7108a79ee207 Mon Sep 17 00:00:00 2001 From: sHa Date: Tue, 25 Jun 2019 10:23:23 +0300 Subject: [PATCH] Update --- package.json | 2 +- scripts/git/submodule_pull.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 80c7098..ecdc7b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sscripts", - "version": "1.0.19", + "version": "1.0.20", "description": "Useful Shell scripts for projects", "author": "sHa ", "license": "MIT", diff --git a/scripts/git/submodule_pull.sh b/scripts/git/submodule_pull.sh index 4526d68..d617763 100755 --- a/scripts/git/submodule_pull.sh +++ b/scripts/git/submodule_pull.sh @@ -3,7 +3,7 @@ # @package sscripts # @author sHa # @copyright 2019 shadoll -# @version 19.6.7 +# @version 19.6.25 # @link https://shadoll.dev # @@ -20,10 +20,10 @@ fi git submodule init if [ -f $PROJECT/docker/.ssh/id_rsa ]; then - if [ `stat -c %a $PROJECT/docker/.ssh/id_rsa` -ne '600' ]; then - chmod -R a=rwX,go-rwX $PROJECT/docker/.ssh + if [ `stat -c %a $PROJECT'docker/.ssh/id_rsa'` -ne '600' ]; then + chmod -R a=rwX,go-rwX $PROJECT'docker/.ssh' 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 git submodule update fi