dotfiles/bin/create-script
2024-05-22 08:52:27 +01:00

22 lines
266 B
Bash
Executable file

#!/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}"