We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2491418 commit 9a3411eCopy full SHA for 9a3411e
update-example-commits.sh
@@ -0,0 +1,14 @@
1
+#!/usr/bin/env bash
2
+set -eu -o pipefail
3
+
4
+# Convenience script for the task of updating the git commits in the
5
+# example files.
6
7
+# Update file
8
+COMMIT="$(git rev-parse HEAD)"
9
+perl -pi -e "s:/static-haskell-nix/archive/........................................:/static-haskell-nix/archive/${COMMIT}:g" static-stack2nix-builder-example/default.nix
10
11
+# Commit
12
+git reset
13
+git add static-stack2nix-builder-example/default.nix
14
+git commit -m 'Update example commits'
0 commit comments