dotfiles/bin/create-script

22 lines
266 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
if [[ "$1" == "" ]]; then
echo "Usage: ${0##*/} <script-name>"; exit 2
fi
2024-05-22 07:51:04 +00:00
set -o errexit
set -o nounset
set -o pipefail
cat > "${1}" << EOF
#!/usr/bin/env bash
2024-05-22 07:51:04 +00:00
set -o errexit
set -o nounset
set -o pipefail
2024-05-22 07:51:04 +00:00
echo "${1}"
EOF
chmod +x "${1}"