dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

gpg-edit (215B)


      1 #!/bin/sh
      2 
      3 [ ! -f "$1" ] && exit
      4 data="$(gpg2 --decrypt --output - "$1")"
      5 
      6 [ "$?" -ne 0 ] && exit "$?"
      7 data="$(echo "$data" | pedit)"
      8 
      9 [ "$?" -ne 0 ] && exit "$?"
     10 echo "$data" | gpg2 --symmetric --output "$1" --yes