Add -e to .sh scripts

This commit is contained in:
Sergey Dolin
2020-10-07 13:49:40 +05:00
parent 87d16c5f7d
commit 1d4f281899
83 changed files with 93 additions and 163 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
# before cleanup
before=$(df / -Pm | awk 'NR==2{print $4}')
@@ -27,4 +27,4 @@ after=$(df / -Pm | awk 'NR==2{print $4}')
# display size
echo "Before: $before MB"
echo "After : $after MB"
echo "Delta : $(($after-$before)) MB"
echo "Delta : $(($after-$before)) MB"