From: Armaan Bhojwani Date: Mon, 1 Mar 2021 15:48:59 +0000 (-0500) Subject: fortune: Fix indentation X-Git-Tag: v0.0.1~33 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=0bf2a588b518eeb613fdb2ad0fe23c23131497ac fortune: Fix indentation --- 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++ }