fix: make collect-profiles.sh work on mac
The version of `date` that ships with darwin does not support the `-Iseconds` flag. Use a pattern with `date` to achieve the same thing but should have better cross platform support. License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Oli Evans committed
Sep 24, 2019 at 11:06 UTC
0316abc7d69017340dbeedc0be5f349225b8691b
1 file changed
+1
-5
bin/collect-profiles.sh
+1
-5
@@ -36,9 +36,5 @@ echo "Disabling mutex profiling"
36
curl -X POST -v "http://$HTTP_API"'/debug/pprof-mutex/?fraction=0'
37
38
popd
39
-tar cvzf "./ipfs-profile-$(uname -n)-$(date -Iseconds).tar.gz" -C "$tmpdir" .
39
+tar cvzf "./ipfs-profile-$(uname -n)-$(date +'%Y-%m-%dT%H:%M:%S%z').tar.gz" -C "$tmpdir" .
40
rm -rf "$tmpdir"
41
-
42
-
43
-
44
-