Skip to content

Commit cfd9d36

Browse files
bors[bot]zimbatm
andauthored
Merge #98
98: src/nixos-anywhere.sh: add shebang r=zimbatm a=zimbatm Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2 parents 44e8a43 + 8e4a684 commit cfd9d36

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ nix run github:numtide/nixos-anywhere -- root@yourip --flake github:your-user/yo
4646
The parameter passed to `--flake` should point to your nixos configuration
4747
exposed in your flake (`nixosConfigurations.your-system` in the example above).
4848

49-
<!-- `$ ./src/nixos-anywhere.sh --help` -->
49+
<!-- `$ bash ./src/nixos-anywhere.sh --help` -->
5050
```
5151
Usage: nixos-anywhere [options] ssh-host
5252

src/nixos-anywhere.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
14
showUsage() {
25
cat <<USAGE
36
Usage: nixos-anywhere [options] ssh-host

0 commit comments

Comments
 (0)