Open newnix opened 4 years ago
Wow, lots of changes.. Will test out and merge..... Thanks for the contribution.
Core logic under bash function main()
is also detailed in Google Shell Style Guide document.
Tak for hurtigt svar.
Håber i løser det hurtigt da jeg har et par kunder der er meget sure
Mvh
Fra: Egbert @.> Sendt: 29. marts 2022 14:30 Til: Jsitech/JShielder @.> Cc: Subscribed @.***> Emne: Re: [Jsitech/JShielder] Refactor to Use Functions and Conditional Execution (#40)
Core logic under bash function main() is also detailed in Google Shell Style Guide document.
https://google.github.io/styleguide/shellguide.html
— Reply to this email directly, view it on GitHub https://github.com/Jsitech/JShielder/pull/40#issuecomment-1081810611 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRAY7QKUEDL6XWO6GA3AADVCLZSZANCNFSM4PFL4GNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
As mentioned here, bring in several improvements to the flow of execution, making sure that directory changes are done in subshells, certain subshells are more streamlined, several calls to
echo
are replaced withprintf
, core logic is encapsulated inside newmain()
functions and notes on continued improvements are made in comments where the changes would require more time or deeper understanding regarding how the script functions.