~shulhan

Bandung, Indonesia

https://kilabit.info

Software engineer at day, avid writer and translator at night; also passive advocate for free and open source movement. Ex-Barksdale crew. Ex-Dunder Mifflin.

Mastodon

Trackers

~shulhan/share

Last active 2 months ago

~shulhan/golang-id.org

Last active 7 months ago

~shulhan/duitku

Last active 7 months ago

~shulhan/gotp

Last active 1 year, 1 month ago

~shulhan/haminer

Last active 1 year, 1 month ago

~shulhan/awwan

Last active 1 year, 4 months ago

~shulhan/rescached-go

Last active 1 year, 9 months ago

~shulhan/trunks

Last active 2 years ago

~shulhan/karajo

Last active 2 years ago

~shulhan/ciigo

Last active 2 years ago
View more

#2 require statement does not executed if start from that line 1 year, 4 months ago

Ticket created by ~shulhan on ~shulhan/awwan

#Steps to reproduce

Assume the script file test.aww,

1| #require: ...
2| echo x

Executing script start from line 1 does not execute the #require: statement.

#1 Exit immediately if variable not found when executing or copying file 1 year, 4 months ago

Ticket created by ~shulhan on ~shulhan/awwan

Given the following configuration on awwan.env,

[app]
address = 127.0.0.1

and content of file config.ini to be copied,

address = {{.Val "app::adddress"}}

When issuing #put: command to copy the file to remote,

10: #put: {{.ScriptDir}}/config.ini /data/app/config.ini
...
----
$ awwan play script.aww 10 -

It should exit immediately if awwan cannot find the variable "app::adddress".