summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/rebuild/delay-touch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/mac/rebuild/delay-touch.sh')
-rwxr-xr-xdeps/gyp/test/mac/rebuild/delay-touch.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/gyp/test/mac/rebuild/delay-touch.sh b/deps/gyp/test/mac/rebuild/delay-touch.sh
new file mode 100755
index 0000000000..7caf105b6e
--- /dev/null
+++ b/deps/gyp/test/mac/rebuild/delay-touch.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+set -e
+
+sleep 1 # mtime resolution is 1 sec on unix.
+touch "$1"