Добавление комментария в скрипты должно быть после строки #!/ #39

Closed
opened 3 years ago by icerider · 2 comments
Collaborator

Шаблон

{% calculate comment='#' %}
#!/bin/bash

echo OK

Выход

#!/bin/bash
#-------------------------------------------------------------------------------
# Modified by Calculate Utilities 4.0
...
#-------------------------------------------------------------------------------

echo OK

Дописывание к скрипту с указанием комментария также должно добавляться после #!/

Исходный файл

#!/bin/bash

echo OK

Шаблон

{% calculate comment='#', append='after' %}
echo Test

Выход

#!/bin/bash
#-------------------------------------------------------------------------------
# Modified by Calculate Utilities 4.0
...
#-------------------------------------------------------------------------------

echo OK
echo Test
Шаблон ``` {% calculate comment='#' %} #!/bin/bash echo OK ``` Выход ``` #!/bin/bash #------------------------------------------------------------------------------- # Modified by Calculate Utilities 4.0 ... #------------------------------------------------------------------------------- echo OK ``` Дописывание к скрипту с указанием комментария также должно добавляться после `#!/` Исходный файл ``` #!/bin/bash echo OK ``` Шаблон ``` {% calculate comment='#', append='after' %} echo Test ``` Выход ``` #!/bin/bash #------------------------------------------------------------------------------- # Modified by Calculate Utilities 4.0 ... #------------------------------------------------------------------------------- echo OK echo Test ```
icerider added the low label 3 years ago
derzeitgeist closed this issue 3 years ago
icerider reopened this issue 3 years ago
Poster
Collaborator

Пример app-shells/bash

Пример `app-shells/bash`
Poster
Collaborator

#! приоритетнее в шаблоне.

`#!` приоритетнее в шаблоне.
derzeitgeist closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: calculate/calculate-utils-4-lib#39
Loading…
There is no content yet.