Skip to content

Commit f298861

Browse files
author
Lisa Ugray
authored
Merge pull request #84 from Shopify/bump_hookbook_stat
Bump hookbook stat
2 parents e23e5ba + eb178f0 commit f298861

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shadowenv"
3-
version = "2.0.5"
3+
version = "2.0.6"
44
authors = ["Burke Libbey <[email protected]>", "Lisa Ugray <[email protected]>", "Aaron Olson <[email protected]>"]
55
edition = "2018"
66

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rustPlatform.buildRustPackage rec {
77
(lib.findFirst (line: lib.hasPrefix ''version = "'' line) ''version = ""''
88
(lib.splitString "\n" (builtins.readFile (./. + "/Cargo.toml")))));
99
src = builtins.fetchGit { url = "file://${builtins.toString ./.}"; };
10-
cargoSha256 = "1ksrqyb88z0sav0hg2asly5my7zgqvjla22a47wb0sppj9f0z70b";
10+
cargoSha256 = "18abkffhb3mkxr4jkf4q5chk5fxbl3xg6rzr08aw9q3z316a6bxh";
1111
nativeBuildInputs = [ installShellFiles ];
1212
buildInputs =
1313
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];

sh/hookbook.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ __hookbook_call_each() {
7373
# we gain nothing from running it in these cases because we already attach
7474
# to PROMPT_COMMAND.
7575
[[ "$(uname -s)" == "Darwin" ]] && {
76-
__dev_null_major="$(stat -f "%Hr" "/dev/null")"
77-
__stat_stderr='stat -f "%Hr" /dev/fd/2'
76+
__dev_null_major="$(/usr/bin/stat -f "%Hr" "/dev/null")"
77+
__stat_stderr='/usr/bin/stat -f "%Hr" /dev/fd/2'
7878
} || {
79-
__dev_null_major="$(stat -c "%t" /dev/null)"
80-
__stat_stderr='stat -c "%t" "$(readlink -f "/dev/fd/2")"'
79+
__dev_null_major="$(/usr/bin/stat -c "%t" /dev/null)"
80+
__stat_stderr='/usr/bin/stat -c "%t" "$(readlink -f "/dev/fd/2")"'
8181
}
8282
\eval "__hookbook_debug_handler() {
8383
[[ \"\${BASH_COMMAND}\" == \"\${PROMPT_COMMAND}\" ]] && \\return

0 commit comments

Comments
 (0)