From 0bf2a588b518eeb613fdb2ad0fe23c23131497ac Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 1 Mar 2021 10:48:59 -0500 Subject: [PATCH] fortune: Fix indentation --- fortune | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/fortune b/fortune index cd24a59..5030086 100755 --- a/fortune +++ b/fortune @@ -17,31 +17,30 @@ a simple POSIX sh/awk implementation of fortune FILE="$(find /usr/share/fortune/ -type f -not -name '*.dat')" while [ "$1" != "" ]; do case $1 in - -h | --help) - usage - exit - ;; - -f | --file) - FILE=$2 - ;; - -c | --cookie) - FILE=/usr/share/fortune/$2 - ;; - -l | --list) - ls -1 /usr/share/fortune - exit - ;; - *) - echo "ERROR: unknown parameter \"$2\"" - usage - exit 1 - ;; + -h | --help) + usage + exit + ;; + -f | --file) + FILE=$2 + ;; + -c | --cookie) + FILE=/usr/share/fortune/$2 + ;; + -l | --list) + ls -1 /usr/share/fortune + exit + ;; + *) + echo "ERROR: unknown parameter \"$2\"" + usage + exit 1 + ;; esac shift 2 done -awk ' -BEGIN { +awk 'BEGIN { f++ } -- 2.39.2