X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=remote%2Fssh-pass;fp=remote%2Fssh-pass;h=2cf063f789e3d14fe051b5a6b079597db174377a;hp=8da082a78577a3528f56cece5f6db4e1441d2cf0;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/remote/ssh-pass b/remote/ssh-pass index 8da082a..2cf063f 100755 --- a/remote/ssh-pass +++ b/remote/ssh-pass @@ -1,4 +1,5 @@ -#!/bin/sh -set -e -f -u -tool=${0%/*}/.. +#!/bin/sh -eu +tool=$(readlink -e "${0%/*}/..") +. "$tool"/remote/lib.sh + gpg --decrypt "$tool"/var/sec/ssh/$SSH_ID.pass.gpg