1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

set the correct filename extension for files created with cliFolder

This commit is contained in:
postmannen 2023-01-26 12:00:22 +01:00
parent 7d21af55e7
commit 0f590472fd

View file

@ -20,7 +20,7 @@ command=$3
IFS=',' read -r -a array <<<"$nodes" IFS=',' read -r -a array <<<"$nodes"
function sendMessage() { function sendMessage() {
cat >msg-"$element".yaml <<EOF cat >msg-"$element".json <<EOF
[ [
{ {
"toNodes": ["${element}"], "toNodes": ["${element}"],
@ -49,5 +49,5 @@ EOF
for element in "${array[@]}"; do for element in "${array[@]}"; do
sendMessage element "$command" sendMessage element "$command"
cp msg-"$element".yaml ./readfolder cp msg-"$element".json ./readfolder
done done