From 48d203704e241567b7b17438aea7eff7e06bae0c Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 18 Jun 2014 02:01:19 +0200 Subject: [PATCH] [syncpass.sh] Comme syncgpg, script >> alias --- syncpass.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 syncpass.sh diff --git a/syncpass.sh b/syncpass.sh new file mode 100644 index 0000000..171dae1 --- /dev/null +++ b/syncpass.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Pour synchroniser mon fichier de secret vers cabal + +if [ "$1" = "--local" ] +then + localmode=".local" +fi + +if [[ "`hostname`" = "eva" ]]; +then + scp -o PubkeyAuthentication=no ~/.pass/pss.gpg cabal${localmode}:.pass/pss.gpg; +else + echo "Do it on eva"; +fi + -- 2.39.2