change indent level to 2
[log-quiet] / failmail
old mode 100644 (file)
new mode 100755 (executable)
index 703e130..377564e
--- a/failmail
+++ b/failmail
 # limitations under the License.
 
 case $1 in
-    -h|--help)
-        cat <<'EOF'
+  -h|--help)
+    cat <<'EOF'
 usage: logmail CMD [ARGS...]
 
 Send mail in case of failure of CMD
 EOF
-        exit 0
-        ;;
+    exit 0
+    ;;
 esac
 
 t=$(mktemp)
 if ! "$@" &>"$t"; then
-    mail -s "$HOSTNAME: $*" $USER@localhost <"$t"
-    rm "$t"
+  mail -s "$HOSTNAME: $*" $USER@localhost <"$t"
+  rm "$t"
 fi
 exit 0