11/**
22 * Hugo service for Hugo operations
3- *
3+ *
44 * @module services/Hugo
55 * @author AXIVO
66 * @license BSD-3-Clause
@@ -11,16 +11,16 @@ const ShellService = require('./Shell');
1111
1212/**
1313 * Hugo service for Hugo operations
14- *
14+ *
1515 * Provides Hugo integration including module management,
1616 * site building, and Git commit integration.
17- *
17+ *
1818 * @class HugoService
1919 */
2020class HugoService extends Action {
2121 /**
2222 * Creates a new HugoService instance
23- *
23+ *
2424 * @param {Object } params - Service parameters
2525 */
2626 constructor ( params ) {
@@ -31,7 +31,7 @@ class HugoService extends Action {
3131
3232 /**
3333 * Builds Hugo sites from configuration
34- *
34+ *
3535 * @param {Object } [options={}] - Build options
3636 * @param {boolean } [options.gc=true] - Run garbage collection
3737 * @param {boolean } [options.minify=true] - Minify output
@@ -53,10 +53,10 @@ class HugoService extends Action {
5353 const word = sites . length === 1 ? 'site' : 'sites' ;
5454 this . logger . info ( `Successfully built ${ sites . length } documentation ${ word } ` ) ;
5555 this . logger . info ( 'Fixing file permissions in public directory...' ) ;
56- await this . shellService . execute ( 'find' , [ 'public' , '-type' , 'f' , '-exec' , 'chmod' , '0644' , '{}' , '; ' ] , {
56+ await this . shellService . execute ( 'find' , [ './ public' , '-type' , 'f' , '-exec' , 'chmod' , '0644' , '{}' , '+ ' ] , {
5757 output : true , silent : false
5858 } ) ;
59- await this . shellService . execute ( 'find' , [ 'public' , '-type' , 'd' , '-exec' , 'chmod' , '0755' , '{}' , '; ' ] , {
59+ await this . shellService . execute ( 'find' , [ './ public' , '-type' , 'd' , '-exec' , 'chmod' , '0755' , '{}' , '+ ' ] , {
6060 output : true , silent : false
6161 } ) ;
6262 this . logger . info ( 'Successfully fixed file permissions' ) ;
@@ -65,7 +65,7 @@ class HugoService extends Action {
6565
6666 /**
6767 * Updates Hugo modules and commits changes
68- *
68+ *
6969 * @returns {Promise<Object> } Update operation result
7070 */
7171 async updateModules ( ) {
0 commit comments