diff options
| author | Christine Dodrill <me@christine.website> | 2021-01-09 17:16:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-09 17:16:30 -0500 |
| commit | 1bd858680de4bb9dc3ffaa274eb93aec56012a0f (patch) | |
| tree | f848e33e66f54d4b93f5eb2a0aebed6745a70e07 /src/build.rs | |
| parent | 49a4d7cbeaeb2bf7b9870a0a01af69253f22e6bf (diff) | |
| download | xesite-1bd858680de4bb9dc3ffaa274eb93aec56012a0f.tar.xz xesite-1bd858680de4bb9dc3ffaa274eb93aec56012a0f.zip | |
Borgbackup nixos post (#291)
* fix the systemd notify code
Signed-off-by: Christine Dodrill <me@christine.website>
* remove k8s baktag
Signed-off-by: Christine Dodrill <me@christine.website>
* borg backup post
Signed-off-by: Christine Dodrill <me@christine.website>
* fix build
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build.rs b/src/build.rs index 600de8a..7c3f12d 100644 --- a/src/build.rs +++ b/src/build.rs @@ -8,6 +8,11 @@ fn main() -> Result<()> { .args(&["rev-parse", "HEAD"]) .output() .unwrap(); + + if std::env::var("out").is_err() { + println!("cargo:rustc-env=out=/yolo"); + } + let git_hash = String::from_utf8(output.stdout).unwrap(); println!( "cargo:rustc-env=GITHUB_SHA={}", |
