Created
July 7, 2022 15:44
-
-
Save madflojo/83859045a7f99e7adf89aee125a55eb4 to your computer and use it in GitHub Desktop.
Article - Managing Shell Scripts - Post shfmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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