summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-07-28 21:03:10 -0400
committerBen Sima <ben@bsima.me>2023-07-28 21:03:25 -0400
commitf19b38cddeaddd834e6cea04f7086d2e98fbda8e (patch)
tree5b8a3d5a4f7c4a5d152c6de5cc5c37d1527dd369 /lib
parent045663bd6784dc28d49a5341bc5fd7804efab222 (diff)
Idk I think this is better bash syntax?
Change-Id: Ic0449f03506f081f30477713d46c7b0ea52e4aaa
Diffstat (limited to 'lib')
-rw-r--r--lib/common.nix2
1 files changed, 1 insertions, 1 deletions
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'}']}';
}