aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml5
-rw-r--r--_pastebins/guix-shebang.md14
2 files changed, 19 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 5e3c5bf..3dd1f1a 100644
--- a/.build.yml
+++ b/.build.yml
@@ -13,6 +13,11 @@ tasks:
- tests: |
cd website/
nix-build -A test
+ - check-branch: |
+ cd website/
+ if [[ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]]; then
+ complete-build;
+ fi
- docs: |
cd website/
nix-build -A publishScript
diff --git a/_pastebins/guix-shebang.md b/_pastebins/guix-shebang.md
new file mode 100644
index 0000000..626aea8
--- /dev/null
+++ b/_pastebins/guix-shebang.md
@@ -0,0 +1,14 @@
+---
+title: Guix shebang
+date: 2020-02-14
+layout: pastebin
+lang: en
+---
+
+```shell
+#!/usr/bin/env -S guix environment --ad-hoc bash -- bash
+set -Eeuo pipefail
+cd "$(dirname "${BASH_SOURCE[0]}")"
+
+pwd
+```