You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this on some of my somewhat messy scripts and it did nothing apparently. I used the -b argument and it didn't even backup anything so I presume the program itself is broken somehow. Not well versed in python so I can't check it out.
I installed beautysh as pip install beautysh, and then tried to run it but it did nothing.
echo "meep"|grep "e";echo "no u"
Actually there is nothing to beautify in your example. There is no best practice for using pipes and semicolons. So, beautysh does nothing.
But we agree that if statements should be formatted in a special way with indentation.
I recommend using beautysh on files containing lots of loops, if statements, etc.
If you try this example;
if [[ $(id -u)!="0" ]];thenecho"Error: You must be root to run this script."elseecho"Installing ..."fi
will be changed to:
if [[ $(id -u)!="0" ]];thenecho"Error: You must be root to run this script."elseecho"Installing ..."fi
I installed beautysh as
pip install beautysh
, and then tried to run it but it did nothing.The text was updated successfully, but these errors were encountered: