Move non-Nix bash scripts
This commit is contained in:
parent
7c9ffc116e
commit
f2eea2d397
21 changed files with 11 additions and 10 deletions
21
modules/home-manager/cli/bin/scripts/create-script
Executable file
21
modules/home-manager/cli/bin/scripts/create-script
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: ${0##*/} <script-name>"; exit 2
|
||||
fi
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
cat > "${1}" << EOF
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
echo "${1}"
|
||||
EOF
|
||||
|
||||
chmod +x "${1}"
|
Loading…
Add table
Add a link
Reference in a new issue