]> git.armaanb.net Git - bin.git/commitdiff
fortune: Fix indentation
authorArmaan Bhojwani <me@armaanb.net>
Mon, 1 Mar 2021 15:48:59 +0000 (10:48 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 1 Mar 2021 15:48:59 +0000 (10:48 -0500)
fortune

diff --git a/fortune b/fortune
index cd24a59c6cc0184ee71628eb3ab509dccd6cf3fe..5030086a99a0b895d088fe9afa4b923e0fedf232 100755 (executable)
--- 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++
 }