]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: use bash instead of perl
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 May 2023 10:24:37 +0000 (12:24 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 May 2023 06:11:10 +0000 (08:11 +0200)
I think this is easier to grok too.

test/test-execute/exec-specifier-interpolation.service

index 4cb1b065187309d9006af58bf9a12f6918671680..2e8882c5ab18ec639aef1a2585470dacdf9a9d66 100644 (file)
@@ -4,4 +4,4 @@ Description=https://github.com/systemd/systemd/issues/2637
 
 [Service]
 Type=oneshot
-ExecStart=/bin/sh -x -c "! test -x perl || perl -e 'exit(!(qq{%%U} eq qq{\\x25U}))'"
+ExecStart=/bin/bash -x -c "[[ %%U == ?U ]]"