Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Jun 4, 2023
1 parent 37c3b4c commit 4fc5cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ sudo systemctl restart sshd

for key in $(bw get item gpg | jq -r '.fields[] | @base64'); do
_jq '.value' | base64 --decode >"$(_jq '.name')"
SIGNING_KEY="${SIGNING_KEY:+$SIGNING_KEY }$(gpg --import "$(_jq '.name')" 2>&1 | head -n 1 | grep -Eo '[0-9A-Z]{16}+')" ## this add an empty before it good
SIGNING_KEY="${SIGNING_KEY:+$SIGNING_KEY }$(gpg --import "$(_jq '.name')" 2>&1 | head -n 1 | grep -Eo '[0-9A-Z]{16}+')"
export SIGNING_KEY
rm "$(_jq '.name')"
done
export SIGNING_KEY
sed -i "s/{{signing_key}}/${SIGNING_KEY%% *}/g" "$HOME"/.gitconfig

rm -rf "$HOME"/.vim
Expand Down

0 comments on commit 4fc5cc1

Please sign in to comment.