When deploying to netlify, it’s recommended to setup your theme as a git submodule (but a zip should still work). To do that, run this locally then commit and push your changes.
Didn’t work, here is the command I used:
C:\Hugo\Sites\ \public>find . -type f -name “*.html” -exec staticrypt {} test ;
Access denied - .
File not found - -TYPE
File not found - F
File not found - -NAME
File not found - -EXEC
File not found - STATICRYPT
File not found - {}
File not found - TEST
File not found - ;
You’re getting an error because you’re running that command on Windows. It’s only available on Mac/Linux/Unix. So if you want to run it locally, (1) install Git Bash, or (2) install Windows Subsystem for Linux.
User@Eli-PC MINGW64 ~ (master)
$ C:\Hugo\Sites\leahdemo\public>find . -type f -name “*.html” -exec staticrypt {} test ;
bash: C:HugoSitesleahdemopublic: command not found
User@Eli-PC MINGW64 ~ (master)
$ Access denied - .
bash: Access: command not found
User@Eli-PC MINGW64 ~ (master)
$ File not found - -TYPE
File: unknown option – T
File: unknown option – Y
File: Unknown param E
User@Eli-PC MINGW64 ~ (master)
$ File not found - F
not: cannot open not' (No such file or directory) found: cannot openfound’ (No such file or directory)
File not found - -NAME
/dev/stdin: ASCII text
F: cannot open `F’ (No such file or directory)
User@Eli-PC MINGW64 ~ (master)
$ File not found - STATICRYPT
not: cannot open not' (No such file or directory) found: cannot openfound’ (No such file or directory)
File not found - {}
/dev/stdin: ASCII text
STATICRYPT: cannot open `STATICRYPT’ (No such file or directory)
User@Eli-PC MINGW64 ~ (master)
$ File not found - TEST
not: cannot open not' (No such file or directory) found: cannot openfound’ (No such file or directory)
File not found - ;
/dev/stdin: ASCII text
TEST: cannot open `TEST’ (No such file or directory)
When I use this command: find . -type f -name \"*.html\" -exec staticrypt {} mypassword \;. It just gives a blank line and does nothing, when I run this command:
User@Eli-PC MINGW64 /c/Hugo/Sites/leahdemo/public (master)
$ find . -type f -name “*.html” -exec staticrypt {} mypassword ;
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
find: ‘staticrypt’: No such file or directory
Probably because staticrypt doesn’t exist in your git bash environment. You’ll need to install Node/NPM, then install staticrypt, then rerun that find command.