-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathbash_inclusion.test
More file actions
44 lines (38 loc) · 854 Bytes
/
bash_inclusion.test
File metadata and controls
44 lines (38 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHORT_HASH=$(git rev-parse --short HEAD)
PWD_MESSAGE="Running from $(pwd)"
DATABASE_URL=postgres://$(whoami)@localhost/my_database
----------------------------------------------------
[
["assign-left", ["SHORT_HASH"]],
["operator", ["="]],
["variable", [
["variable", "$("],
["function", "git"],
" rev-parse ",
["parameter", "--short"],
" HEAD",
["variable", ")"]
]],
["assign-left", ["PWD_MESSAGE"]],
["operator", ["="]],
["string", [
"\"Running from ",
["variable", [
["variable", "$("],
["builtin", "pwd"],
["variable", ")"]
]],
"\""
]],
["assign-left", ["DATABASE_URL"]],
["operator", ["="]],
"postgres://",
["variable", [
["variable", "$("],
["function", "whoami"],
["variable", ")"]
]],
"@localhost/my_database"
]
----------------------------------------------------
Check for bash inclusion.