mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-10 01:26:33 +02:00
test: fix on Linux?
This commit is contained in:
parent
d1297b5b25
commit
030336b858
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue