diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-30 01:58:32 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-30 01:58:32 -0400 |
commit | f373390ee969b7934b13888093a9fd3488840163 (patch) | |
tree | 78d6ac615bef9197aec320fa3b46d9b5f7945e50 /Makefile.hush | |
parent | c7bc10c0963bc003df2deaabe773bbc2fcbdf736 (diff) | |
download | conf-f373390ee969b7934b13888093a9fd3488840163.tar.gz conf-f373390ee969b7934b13888093a9fd3488840163.zip |
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 (???)
Diffstat (limited to 'Makefile.hush')
-rw-r--r-- | Makefile.hush | 3 |
1 files changed, 2 insertions, 1 deletions
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 (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$(pass show websites/last.fm/doyster)" < $< > $@ + pass="$$(pass show websites/last.fm/doyster)" &&\ + perl -E'while (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$pass" < $< > $@ |