Created
August 10, 2021 03:24
-
-
Save nestorwheelock/731decc1cd5142f1001f90785013267e to your computer and use it in GitHub Desktop.
case switches for refactoring Linux Bash scripts to FBSD
This file contains 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
case $( uname ) in | |
(Linux) | |
# paste your old stuff here | |
;; | |
(FreeBSD) | |
# write new code here or copy with modifications if possible | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment