From 8a196bb62b6df9fa508aeca4f5799cf0edb7d7b9 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 9 Jan 2017 22:49:29 +0100 Subject: [PATCH] systemd: fix quoting in glob pattern --- modules/systemd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/systemd.nix b/modules/systemd.nix index 6ea8b21c..cead653a 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -79,8 +79,8 @@ in --new-line-format='+%L' \ --old-line-format='-%L' \ --unchanged-line-format=' %L' \ - <(basename -a $(echo "$oldUserServicePath/*.service") | sort) \ - <(basename -a $(echo "$newUserServicePath/*.service") | sort) \ + <(basename -a $(echo "$oldUserServicePath/"*.service) | sort) \ + <(basename -a $(echo "$newUserServicePath/"*.service) | sort) \ > $servicesDiffFile local -a maybeRestart=( $(grep '^ ' $servicesDiffFile | cut -c2-) )