commit 15df9b1bf2c31b5b3420b8a09d2b5a7380914249 parent cdd12c07bb71cf68b909b3b1c583589efc7bf2fb Author: Willy Goiffon <contact@z3bra.org> Date: Tue, 13 Jul 2021 18:48:41 +0200 Add scripts to package someday Diffstat:
A | scripts/askpass | | | 5 | +++++ |
A | scripts/harbour-safe.sh | | | 8 | ++++++++ |
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/scripts/askpass b/scripts/askpass @@ -0,0 +1,5 @@ +#!/bin/sh + +stty -echo +read p +echo "$p" diff --git a/scripts/harbour-safe.sh b/scripts/harbour-safe.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ -z "${XDG_RUNTIME_DIR}" ]; then + export XDG_RUNTIME_DIR=$HOME/.local/share/safe-store +fi + +eval `safe-agent -t 900 -f "${XDG_RUNTIME_DIR}/agent.sock"` +exec harbour-safe