From f373390ee969b7934b13888093a9fd3488840163 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 30 Oct 2018 01:58:32 -0400 Subject: handle errors properly when templating this file $() only causes a shell error when it's part of a variable assignment, not if it's used inline as part of an expression (???) --- Makefile.hush | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.hush') diff --git a/Makefile.hush b/Makefile.hush index 175face..dcb3946 100644 --- a/Makefile.hush +++ b/Makefile.hush @@ -51,4 +51,5 @@ wunderground : pass show websites/wunderground.com/wunderground@tozt.net > $@ mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl - perl -E'while () { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$(pass show websites/last.fm/doyster)" < $< > $@ + pass="$$(pass show websites/last.fm/doyster)" &&\ + perl -E'while () { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$pass" < $< > $@ -- cgit v1.2.3-54-g00ecf