Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created July 7, 2022 15:44
Show Gist options
  • Save madflojo/83859045a7f99e7adf89aee125a55eb4 to your computer and use it in GitHub Desktop.
Save madflojo/83859045a7f99e7adf89aee125a55eb4 to your computer and use it in GitHub Desktop.
Article - Managing Shell Scripts - Post shfmt
#! /bin/bash
# Simple script that says who I am.
WHOAMI=$(whoami)
if [ $WHOAMI == "root" ]; then
cowsay "I am rooooot!!!"
else
cowsay "You are $WHOAMI"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment