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:
parent
7d21af55e7
commit
0f590472fd
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ command=$3
|
|||
IFS=',' read -r -a array <<<"$nodes"
|
||||
|
||||
function sendMessage() {
|
||||
cat >msg-"$element".yaml <<EOF
|
||||
cat >msg-"$element".json <<EOF
|
||||
[
|
||||
{
|
||||
"toNodes": ["${element}"],
|
||||
|
@ -49,5 +49,5 @@ EOF
|
|||
|
||||
for element in "${array[@]}"; do
|
||||
sendMessage element "$command"
|
||||
cp msg-"$element".yaml ./readfolder
|
||||
cp msg-"$element".json ./readfolder
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue