This commit is contained in:
parent
7780eca7a9
commit
5341b761ad
15 changed files with 29 additions and 38 deletions
21
packages/create-script.nix
Executable file
21
packages/create-script.nix
Executable file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "create-script";
|
||||
|
||||
text = ''
|
||||
cat > "$1" << EOF
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
chmod +x "$1"
|
||||
|
||||
$EDITOR "$1";
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue