ansible/playbooks/apps/files/bin/cron2bash

9 lines
155 B
Text
Raw Permalink Normal View History

2024-10-11 16:42:01 +02:00
#!/bin/bash
set -euo pipefail
script_name=$1
cp .template $script_name
chmod +x $script_name
shift
echo "$@" >> $script_name
echo $(realpath $script_name)