Loading git-crypt-unlock-all.sh +7 −3 Original line number Diff line number Diff line Loading @@ -34,13 +34,12 @@ function verify_gpg_passphrase() { } function do_unlock() { echo unlock $PWD keyfile=$1 if [ ! -z $keyfile ]; then git-crypt unlock $keyfile else expect <<EOF expect 2> /dev/null <<EOF spawn git-crypt unlock expect "Enter passphrase:" send "$passphrase\r"; Loading Loading @@ -74,10 +73,15 @@ do skip "Skipping $m; Please update module with: git submodule init $m && git submodule update $m." continue else ( echo "Checking out $i master branch" ( echo echo echo "==== Unlocking $m ====" echo "Checking out $i master branch" cd $m git checkout master do_unlock $keyfile echo "==== End of $m ====" ) fi done Loading
git-crypt-unlock-all.sh +7 −3 Original line number Diff line number Diff line Loading @@ -34,13 +34,12 @@ function verify_gpg_passphrase() { } function do_unlock() { echo unlock $PWD keyfile=$1 if [ ! -z $keyfile ]; then git-crypt unlock $keyfile else expect <<EOF expect 2> /dev/null <<EOF spawn git-crypt unlock expect "Enter passphrase:" send "$passphrase\r"; Loading Loading @@ -74,10 +73,15 @@ do skip "Skipping $m; Please update module with: git submodule init $m && git submodule update $m." continue else ( echo "Checking out $i master branch" ( echo echo echo "==== Unlocking $m ====" echo "Checking out $i master branch" cd $m git checkout master do_unlock $keyfile echo "==== End of $m ====" ) fi done