mirror of
https://github.com/gchq/CyberChef
synced 2024-11-15 09:07:06 +00:00
6 lines
398 B
Bash
6 lines
398 B
Bash
|
# Add file extensions to Crypto-Api imports
|
||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||
|
find ./node_modules/crypto-api/src/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e '/\.mjs/!s/\(from "\.[^"]*\)";/\1.mjs";/g'
|
||
|
else
|
||
|
find ./node_modules/crypto-api/src/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i -e '/\.mjs/!s/\(from "\.[^"]*\)";/\1.mjs";/g'
|
||
|
fi
|