From a81a8003929a5b510101374e44aa21322e7cffe2 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 18 Jun 2014 01:37:57 +0200 Subject: [PATCH] [gpg_synchro.sh] Mode --local --- gpg_synchro.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gpg_synchro.sh b/gpg_synchro.sh index 4eaf1f6..f49211a 100755 --- a/gpg_synchro.sh +++ b/gpg_synchro.sh @@ -2,8 +2,13 @@ # Pour synchroniser facilement les données gpg entre mes deux machines +if [ "$1" = "--local" ] +then + localmode=".local" +fi + echo "ici → cabal" -gpg --export | ssh cabal gpg --import +gpg --export | ssh cabal${localmode} gpg --import echo "cabal → ici" -ssh cabal gpg --export | gpg --import +ssh cabal${localmode} gpg --export | gpg --import -- 2.39.2