Add default value to permissions to #WriteFile
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
parent
0e5fb4ec29
commit
513638a40b
@ -43,7 +43,7 @@ package engine
|
||||
// Contents to write
|
||||
contents: string
|
||||
// Permissions of the file
|
||||
permissions: int
|
||||
permissions: *0o600 | int
|
||||
// Output filesystem tree
|
||||
output: #FS
|
||||
}
|
||||
|
@ -7,10 +7,10 @@ engine.#Plan & {
|
||||
scratch: engine.#Scratch
|
||||
|
||||
data: engine.#WriteFile & {
|
||||
input: scratch.output
|
||||
path: "/test"
|
||||
mode: 0o600
|
||||
contents: "foobar"
|
||||
input: scratch.output
|
||||
path: "/test"
|
||||
permissions: 0o600
|
||||
contents: "foobar"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user