generated from intersystems-community/intersystems-iris-dev-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Scripts run as typed into a terminal
so they fail with blocks of lines in { }
#11 31.08 IF status {
#11 31.08 ^
#11 31.08
#11 31.08 %SYS>
#11 31.09
#11 31.09 %SYS>
#11 31.09
#11 31.09 ✓ Aplicação /m5k3t atualizada
#11 31.09 %SYS>
#11 31.09
#11 31.09 } Else {
#11 31.09 ^
#11 31.09
#11 31.09 %SYS>
workaround: use IF ELSE single lines
or prostconditions --- dirty hack:
// Tenta criar, se já existir, apenas atualiza
Set (%s,status) = ##class(Security.Applications).Exists("/m5k3t")
Do:%s ##class(Security.Applications).Modify("/m5k3t", .props)
Write:%s !, "✓ Aplicação /m5k3t atualizada"
Do:'%s ##class(Security.Applications).Create("/m5k3t", .props)
Write:'%s !, "✓ Aplicação /m5k3t criada"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels