cancel
Showing results for 
Search instead for 
Did you mean: 
Chetan_Tiwary_
Community Manager
Community Manager
  • 440 Views

Useful shell script tool

Check out this wonderful tool for your shell script which helps you to find bugs in your script :

https://www.shellcheck.net/

Screenshot from 2024-09-10 21-47-55.png

Another example : script to check if a file exists or not :

Chetan_Tiwary__0-1725985270960.png

This way it will help you to correctly write a shell script. Hope this is a useful tool for you!

2 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 430 Views

for the last example, I did apply the suggestions and it worked like a charm :

Chetan_Tiwary__0-1725985834388.png

Chetan_Tiwary__1-1725986464600.png

 

Trevor
Starfighter Starfighter
Starfighter
  • 425 Views

Wow!  Pretty doggone sweet!  It not only tells where you're missing the boat,
but explains how!

This tool has a lot of built-in intelligence!!!

Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.