Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
423 B

  1. #!/bin/bash
  2. echo "Please enter the location of image file (Press enter to skip this step): "
  3. read loc
  4. if [ -z "$loc" ]
  5. then
  6. echo "Continuing with the installation..."
  7. exit
  8. fi
  9. ~/.scripts/jsteg reveal $loc > /tmp/out.zip.gpg
  10. echo "Please enter your passphrase: "
  11. gpg -d /tmp/out.zip.gpg > /tmp/out.zip
  12. unzip /tmp/out.zip -d /tmp/keys
  13. gpg --import /tmp/keys/gpg.key
  14. mkdir -p ~/.ssh
  15. cp /tmp/keys/id_* ~/.ssh