From 5087ce245f15e581e5efb9276806cb1dd9d99d55 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 8 Sep 2021 17:01:10 +0200 Subject: [PATCH] minor cleanups - btcpayserver: remove unneeded trailing semicolons - krops/get-sha256: `tail` is unneeded because `nix-prefetch-url` just outputs a single line containing the hash. --- modules/btcpayserver.nix | 4 ++-- pkgs/krops/get-sha256.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index 1e1f45f..751614f 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -210,9 +210,9 @@ in { install -m 600 ${configFile} '${cfg.btcpayserver.dataDir}/settings.config' ${optionalString (cfg.btcpayserver.lightningBackend == "lnd") '' { - echo -n "${lndConfig}"; + echo -n "${lndConfig}" ${pkgs.openssl}/bin/openssl x509 -noout -fingerprint -sha256 -in ${config.nix-bitcoin.secretsDir}/lnd-cert \ - | sed -e 's/.*=//;s/://g'; + | sed -e 's/.*=//;s/://g' } >> '${cfg.btcpayserver.dataDir}/settings.config' ''} ''; diff --git a/pkgs/krops/get-sha256.sh b/pkgs/krops/get-sha256.sh index 91b4049..d7cd792 100755 --- a/pkgs/krops/get-sha256.sh +++ b/pkgs/krops/get-sha256.sh @@ -5,7 +5,7 @@ set -euo pipefail archive_hash () { repo=$1 rev=$2 - nix-prefetch-url --unpack "https://github.com/${repo}/archive/${rev}.tar.gz" 2> /dev/null | tail -n 1 + nix-prefetch-url --unpack "https://github.com/${repo}/archive/${rev}.tar.gz" 2> /dev/null } echo "Fetching latest krops commit"