From a2e2ecff05008f1f20e85010e1c79ff5ec64c4a6 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 24 Feb 2024 15:28:06 +0100 Subject: fix(treewide): Add shell library import directive --- hm/soispha/conf/gpg/agent-program.sh | 6 +++++- hm/soispha/conf/unison/default.nix | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'hm/soispha/conf') diff --git a/hm/soispha/conf/gpg/agent-program.sh b/hm/soispha/conf/gpg/agent-program.sh index e6917db0..2f159ba9 100755 --- a/hm/soispha/conf/gpg/agent-program.sh +++ b/hm/soispha/conf/gpg/agent-program.sh @@ -1,2 +1,6 @@ -#!/bin/sh +#!/usr/bin/env dash + +# shellcheck source=/dev/null +SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH + onlykey-gpg-agent -v --skey-slot=ECC32 --dkey-slot=ECC32 "$@" diff --git a/hm/soispha/conf/unison/default.nix b/hm/soispha/conf/unison/default.nix index 94824fc9..7b91920c 100644 --- a/hm/soispha/conf/unison/default.nix +++ b/hm/soispha/conf/unison/default.nix @@ -134,8 +134,13 @@ in { (sysLib.writeShellScript { name = "unison-sync"; src = builtins.toFile "unison-backup" ('' - #!/usr/bin/env sh + #!/usr/bin/env dash + + # shellcheck source=/dev/null + SHELL_LIBRARY_VERSION="2.1.1" . %SHELL_LIBRARY_PATH + export UNISON=${esa unisonPath}; + if [ "$1" = "links" ]; then EXTRA_OPTIONS="-links=true"; fi -- cgit 1.4.1