From f19b38cddeaddd834e6cea04f7086d2e98fbda8e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 28 Jul 2023 21:03:10 -0400 Subject: Idk I think this is better bash syntax? Change-Id: Ic0449f03506f081f30477713d46c7b0ea52e4aaa --- lib/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common.nix b/lib/common.nix index d2d511a..110381d 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -350,7 +350,7 @@ in { done cd "$P" } - function regex { + function regex() { gawk 'match($0,/'$1'/, ary) {print ary['\$\{2:-'0'}']}'; } -- cgit v1.2.3