diff options
author | Omar Rizwan <omar@omar.website> | 2021-01-11 23:59:24 -0800 |
---|---|---|
committer | Omar Rizwan <omar@omar.website> | 2021-01-11 23:59:24 -0800 |
commit | 030336b8584ccde5f7052f896c627643981b1dce (patch) | |
tree | 9e0786393cedefb82589af31a64cb6c65ffee966 | |
parent | d1297b5b2521e2f035dc409dde969eadffa5e198 (diff) |
test: fix on Linux?
-rw-r--r-- | test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c index d16c724..ad6c14d 100644 --- a/test/test.c +++ b/test/test.c @@ -13,7 +13,7 @@ int file_contents_equal(char* path, char* contents) { // hehe: https://twitter.com/ianh_/status/1340450349065244675 setenv("path", path, 1); setenv("contents", contents, 1); - return system("[ \"$contents\" == \"$(cat \"$path\")\" ]") == 0; + return system("bash -c '[ \"$contents\" == \"$(cat \"$path\")\" ]'") == 0; } char* expand(char* phrase) { // expand path with wildcard |